Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/i386 sync with arch/i386/isa/npx.c:



details:   https://anonhg.NetBSD.org/src/rev/632d5c68c66b
branches:  trunk
changeset: 565396:632d5c68c66b
user:      cl <cl%NetBSD.org@localhost>
date:      Tue Apr 06 16:23:33 2004 +0000

description:
sync with arch/i386/isa/npx.c:
1.103/simonb
Only initialise ksi if we use it.

diffstat:

 sys/arch/xen/i386/npx.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r 82da0e2ce456 -r 632d5c68c66b sys/arch/xen/i386/npx.c
--- a/sys/arch/xen/i386/npx.c   Tue Apr 06 16:20:29 2004 +0000
+++ b/sys/arch/xen/i386/npx.c   Tue Apr 06 16:23:33 2004 +0000
@@ -1,5 +1,5 @@
-/*     $NetBSD: npx.c,v 1.1 2004/03/11 21:44:08 cl Exp $       */
-/*     NetBSD: npx.c,v 1.102 2004/02/13 11:36:14 wiz Exp       */
+/*     $NetBSD: npx.c,v 1.2 2004/04/06 16:23:33 cl Exp $       */
+/*     NetBSD: npx.c,v 1.103 2004/03/21 10:56:24 simonb Exp    */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npx.c,v 1.1 2004/03/11 21:44:08 cl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npx.c,v 1.2 2004/04/06 16:23:33 cl Exp $");
 
 #if 0
 #define IPRINTF(x)     printf x
@@ -449,9 +449,6 @@
        /*
         * Pass exception to process.
         */
-       KSI_INIT_TRAP(&ksi);
-       ksi.ksi_signo = SIGFPE;
-       ksi.ksi_addr = (void *)frame->if_eip;
        if (USERMODE(frame->if_cs, frame->if_eflags)) {
                /*
                 * Interrupt is essentially a trap, so we can afford to call
@@ -466,6 +463,10 @@
                 */
                l->l_md.md_regs = (struct trapframe *)&frame->if_gs;
 
+               KSI_INIT_TRAP(&ksi);
+               ksi.ksi_signo = SIGFPE;
+               ksi.ksi_addr = (void *)frame->if_eip;
+
                /*
                 * Encode the appropriate code for detailed information on
                 * this exception.



Home | Main Index | Thread Index | Old Index