sync with arch/i386/isa/npx.c:
1.103/simonb Only initialise ksi if we use it.
This commit is contained in:
parent
428b54f8f6
commit
ea9aadc45a
@ -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 @@ npxintr(void *arg, struct intrframe iframe)
|
||||
/*
|
||||
* 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 @@ npxintr(void *arg, struct intrframe iframe)
|
||||
*/
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user