Set ksi_addr to frame->code.

This commit is contained in:
matt 2003-09-29 22:20:52 +00:00
parent b911732f2a
commit ec1689548e

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.83 2003/09/29 21:04:53 matt Exp $ */
/* $NetBSD: trap.c,v 1.84 2003/09/29 22:20:52 matt Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@ -33,7 +33,7 @@
/* All bugs are subject to removal without further notice */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.83 2003/09/29 21:04:53 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.84 2003/09/29 22:20:52 matt Exp $");
#include "opt_ddb.h"
#include "opt_ktrace.h"
@ -374,6 +374,7 @@ if(faultdebug)printf("trap accflt type %lx, code %lx, pc %lx, psl %lx\n",
memset(&ksi, 0, sizeof(ksi));
ksi.ksi_signo = sig;
ksi.ksi_trap = frame->code;
ksi.ksi_addr = (void *)frame->code;
ksi.ksi_code = code;
trapsignal(l, &ksi);
KERNEL_PROC_UNLOCK(l);