Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh3/sh3 remove #if 0 #endif



details:   https://anonhg.NetBSD.org/src/rev/2a7cab2aa57e
branches:  trunk
changeset: 526250:2a7cab2aa57e
user:      uch <uch%NetBSD.org@localhost>
date:      Mon Apr 29 09:33:30 2002 +0000

description:
remove #if 0 #endif

diffstat:

 sys/arch/sh3/sh3/process_machdep.c |  17 +----------------
 sys/arch/sh3/sh3/sh3_machdep.c     |   8 +-------
 2 files changed, 2 insertions(+), 23 deletions(-)

diffs (73 lines):

diff -r a6d660dd1222 -r 2a7cab2aa57e sys/arch/sh3/sh3/process_machdep.c
--- a/sys/arch/sh3/sh3/process_machdep.c        Mon Apr 29 09:32:56 2002 +0000
+++ b/sys/arch/sh3/sh3/process_machdep.c        Mon Apr 29 09:33:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process_machdep.c,v 1.4 2002/03/03 14:31:28 uch Exp $  */
+/*     $NetBSD: process_machdep.c,v 1.5 2002/04/29 09:33:30 uch Exp $  */
 
 /*
  * Copyright (c) 1995, 1996, 1997
@@ -89,15 +89,9 @@
 process_read_regs(struct proc *p, struct reg *regs)
 {
        struct trapframe *tf = process_frame(p);
-#if 0
-       struct pcb *pcb = &p->p_addr->u_pcb;
 
-       regs->r_spc = pcb->spc;
-       regs->r_ssr = pcb->ssr;
-#else
        regs->r_spc = tf->tf_spc;
        regs->r_ssr = tf->tf_ssr;
-#endif
        regs->r_macl = tf->tf_macl;
        regs->r_mach = tf->tf_mach;
        regs->r_pr = tf->tf_pr;
@@ -163,18 +157,9 @@
 process_sstep(p, sstep)
        struct proc *p;
 {
-#ifdef TODO
-       struct trapframe *tf = process_frame(p);
-
-       if (sstep)
-               tf->tf_eflags |= PSL_T;
-       else
-               tf->tf_eflags &= ~PSL_T;
-#else
 
        if (sstep)
                return (EINVAL);
-#endif
 
        return (0);
 }
diff -r a6d660dd1222 -r 2a7cab2aa57e sys/arch/sh3/sh3/sh3_machdep.c
--- a/sys/arch/sh3/sh3/sh3_machdep.c    Mon Apr 29 09:32:56 2002 +0000
+++ b/sys/arch/sh3/sh3/sh3_machdep.c    Mon Apr 29 09:33:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sh3_machdep.c,v 1.38 2002/04/28 17:10:39 uch Exp $     */
+/*     $NetBSD: sh3_machdep.c,v 1.39 2002/04/29 09:33:30 uch Exp $     */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2002 The NetBSD Foundation, Inc.
@@ -497,9 +497,6 @@
        frame.sf_sc.sc_r1 = tf->tf_r1;
        frame.sf_sc.sc_r0 = tf->tf_r0;
        frame.sf_sc.sc_trapno = tf->tf_trapno;
-#ifdef TODO
-       frame.sf_sc.sc_err = tf->tf_err;
-#endif
 
        /* Save signal stack. */
        frame.sf_sc.sc_onstack = p->p_sigctx.ps_sigstk.ss_flags & SS_ONSTACK;
@@ -530,9 +527,6 @@
         * Build context to run handler in.
         */
        tf->tf_spc = (int)p->p_sigctx.ps_sigcode;
-#ifdef TODO
-       tf->tf_ssr &= ~(PSL_T|PSL_VM|PSL_AC);
-#endif
        tf->tf_r15 = (int)fp;
 
        /* Remember that we're now on the signal stack. */



Home | Main Index | Thread Index | Old Index