Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 Report faulting data address with S...
details: https://anonhg.NetBSD.org/src/rev/804bf137ab49
branches: trunk
changeset: 778977:804bf137ab49
user: martin <martin%NetBSD.org@localhost>
date: Mon Apr 23 15:09:13 2012 +0000
description:
Report faulting data address with SIGBUS (instead of the faulting instruction)
diffstat:
sys/arch/sparc64/sparc64/trap.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r fae7bd0e3a07 -r 804bf137ab49 sys/arch/sparc64/sparc64/trap.c
--- a/sys/arch/sparc64/sparc64/trap.c Mon Apr 23 15:07:56 2012 +0000
+++ b/sys/arch/sparc64/sparc64/trap.c Mon Apr 23 15:09:13 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.174 2012/03/25 15:40:32 nakayama Exp $ */
+/* $NetBSD: trap.c,v 1.175 2012/04/23 15:09:13 martin Exp $ */
/*
* Copyright (c) 1996-2002 Eduardo Horvath. All rights reserved.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.174 2012/03/25 15:40:32 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.175 2012/04/23 15:09:13 martin Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@@ -730,7 +730,6 @@
l->l_proc->p_pid, l->l_lid, l->l_proc->p_comm, fmt64(dsfsr), fmt64(dsfar),
fmt64(isfsr), pc);
#endif
- }
#if defined(DDB) && defined(DEBUG)
if (trapdebug & TDB_STOPSIG) {
@@ -747,7 +746,8 @@
sig = SIGBUS;
ksi.ksi_trap = type;
ksi.ksi_code = BUS_ADRALN;
- ksi.ksi_addr = (void *)pc;
+ ksi.ksi_addr = (void*)dsfar;
+ }
break;
case T_FP_IEEE_754:
@@ -1560,7 +1560,7 @@
ksi.ksi_signo = SIGBUS;
ksi.ksi_code = BUS_OBJERR;
ksi.ksi_trap = type;
- ksi.ksi_addr = (void *)pc;
+ ksi.ksi_addr = (void *)afva;
trapsignal(l, &ksi);
}
Home |
Main Index |
Thread Index |
Old Index