Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 GC unneeded code.



details:   https://anonhg.NetBSD.org/src/rev/10e3c9399e27
branches:  trunk
changeset: 500244:10e3c9399e27
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Fri Dec 08 22:32:09 2000 +0000

description:
GC unneeded code.

diffstat:

 sys/arch/i386/i386/trap.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r fc235b61b289 -r 10e3c9399e27 sys/arch/i386/i386/trap.c
--- a/sys/arch/i386/i386/trap.c Fri Dec 08 22:23:14 2000 +0000
+++ b/sys/arch/i386/i386/trap.c Fri Dec 08 22:32:09 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.143 2000/12/02 16:03:24 jdolecek Exp $      */
+/*     $NetBSD: trap.c,v 1.144 2000/12/08 22:32:09 mycroft Exp $       */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -581,8 +581,10 @@
        u_quad_t sticks;
 
        uvmexp.syscalls++;
+#ifdef DEBUG
        if (!USERMODE(frame.tf_cs, frame.tf_eflags))
                panic("syscall");
+#endif
 
        p = curproc;
        if (p->p_emul->e_syscall) {
@@ -654,11 +656,6 @@
        error = (*callp->sy_call)(p, args, rval);
        switch (error) {
        case 0:
-               /*
-                * Reinitialize proc pointer `p' as it may be different
-                * if this is a child returning from fork syscall.
-                */
-               p = curproc;
                frame.tf_eax = rval[0];
                frame.tf_edx = rval[1];
                frame.tf_eflags &= ~PSL_C;      /* carry bit */



Home | Main Index | Thread Index | Old Index