Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/isa Only initialise ksi if we use it.
details: https://anonhg.NetBSD.org/src/rev/b703f851fa92
branches: trunk
changeset: 559629:b703f851fa92
user: simonb <simonb%NetBSD.org@localhost>
date: Sun Mar 21 10:56:24 2004 +0000
description:
Only initialise ksi if we use it.
diffstat:
sys/arch/i386/isa/npx.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r 99ad8f667d87 -r b703f851fa92 sys/arch/i386/isa/npx.c
--- a/sys/arch/i386/isa/npx.c Sun Mar 21 10:52:26 2004 +0000
+++ b/sys/arch/i386/isa/npx.c Sun Mar 21 10:56:24 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npx.c,v 1.102 2004/02/13 11:36:14 wiz 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.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npx.c,v 1.102 2004/02/13 11:36:14 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npx.c,v 1.103 2004/03/21 10:56:24 simonb Exp $");
#if 0
#define IPRINTF(x) printf x
@@ -435,9 +435,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
@@ -452,6 +449,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