From e8011301bf1a871f0bad5f1566372963839d08a0 Mon Sep 17 00:00:00 2001 From: mycroft Date: Sun, 15 Oct 1995 04:18:27 +0000 Subject: [PATCH] Style police. --- sys/arch/i386/i386/trap.c | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c index 33d07ecf25b0..0bce8f8d6847 100644 --- a/sys/arch/i386/i386/trap.c +++ b/sys/arch/i386/i386/trap.c @@ -1,4 +1,4 @@ -/* $NetBSD: trap.c,v 1.88 1995/10/14 14:06:16 fvdl Exp $ */ +/* $NetBSD: trap.c,v 1.89 1995/10/15 04:18:27 mycroft Exp $ */ #undef DEBUG #define DEBUG @@ -70,10 +70,15 @@ #ifdef COMPAT_IBCS2 #include #include +extern struct emul emul_ibcs2; #endif #ifdef COMPAT_LINUX #include #include +extern struct emul emul_linux_aout, emul_linux_elf; +#endif +#ifdef COMPAT_FREEBSD +extern struct emul emul_freebsd; #endif #include "npx.h" @@ -496,15 +501,6 @@ syscall(frame) size_t argsize; register_t code, args[8], rval[2]; u_quad_t sticks; -#ifdef COMPAT_IBCS2 - extern struct emul emul_ibcs2; -#endif -#ifdef COMPAT_LINUX - extern struct emul emul_linux_aout, emul_linux_elf; -#endif -#ifdef COMPAT_FREEBSD - extern struct emul emul_freebsd; -#endif cnt.v_syscall++; if (!USERMODE(frame.tf_cs, frame.tf_eflags)) @@ -653,19 +649,17 @@ child_return(p, frame) struct proc *p; struct trapframe frame; { -#ifdef COMPAT_LINUX - extern struct emul emul_linux_aout, emul_linux_elf; - if (p->p_emul == &emul_linux_aout || p->p_emul == &emul_linux_elf) - frame.tf_eax = frame.tf_edx = 0; - else { +#ifdef COMPAT_LINUX + if (p->p_emul == &emul_linux_aout || p->p_emul == &emul_linux_elf) { + frame.tf_eax = 0 + frame.tf_edx = 0; + } else +#else + { frame.tf_eax = p->p_pid; frame.tf_edx = 1; } -#else - frame.tf_eax = p->p_pid; - frame.tf_edx = 1; -#endif frame.tf_eflags &= ~PSL_C; userret(p, frame.tf_eip, 0);