Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc put the cpu_number() into some messages.
details: https://anonhg.NetBSD.org/src/rev/36416dd690b6
branches: trunk
changeset: 750663:36416dd690b6
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Jan 10 03:36:30 2010 +0000
description:
put the cpu_number() into some messages.
diffstat:
sys/arch/sparc/sparc/trap.c | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
diffs (63 lines):
diff -r b9d47cc5750d -r 36416dd690b6 sys/arch/sparc/sparc/trap.c
--- a/sys/arch/sparc/sparc/trap.c Sun Jan 10 01:35:39 2010 +0000
+++ b/sys/arch/sparc/sparc/trap.c Sun Jan 10 03:36:30 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.179 2009/11/21 04:16:52 rmind Exp $ */
+/* $NetBSD: trap.c,v 1.180 2010/01/10 03:36:30 mrg Exp $ */
/*
* Copyright (c) 1996
@@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.179 2009/11/21 04:16:52 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.180 2010/01/10 03:36:30 mrg Exp $");
#include "opt_ddb.h"
#include "opt_compat_svr4.h"
@@ -841,7 +841,8 @@
if (type == T_TEXTFAULT) {
(void) splhigh();
snprintb(bits, sizeof(bits), SER_BITS, ser);
- printf("text fault: pc=0x%x ser=%s\n", pc, bits);
+ printf("cpu%d: text fault: pc=0x%x ser=%s\n",
+ cpu_number(), pc, bits);
panic("kernel fault");
/* NOTREACHED */
}
@@ -942,8 +943,9 @@
if (!onfault) {
(void) splhigh();
snprintb(bits, sizeof(bits), SER_BITS, ser);
- printf("data fault: pc=0x%x addr=0x%x ser=%s\n",
- pc, v, bits);
+ printf("cpu%d: data fault: pc=0x%x "
+ "addr=0x%x ser=%s\n",
+ cpu_number(), pc, v, bits);
panic("kernel fault");
/* NOTREACHED */
}
@@ -1160,8 +1162,8 @@
if (sfsr & SFSR_AT_TEXT || type == T_TEXTFAULT) {
(void) splhigh();
snprintb(bits, sizeof(bits), SFSR_BITS, sfsr);
- printf("text fault: pc=0x%x sfsr=%s sfva=0x%x\n", pc,
- bits, sfva);
+ printf("cpu%d text fault: pc=0x%x sfsr=%s sfva=0x%x\n",
+ cpu_number(), pc, bits, sfva);
panic("kernel fault");
/* NOTREACHED */
}
@@ -1229,8 +1231,9 @@
if (!onfault) {
(void) splhigh();
snprintb(bits, sizeof(bits), SFSR_BITS, sfsr);
- printf("data fault: pc=0x%x addr=0x%x sfsr=%s\n",
- pc, sfva, bits);
+ printf("cpu%d: data fault: pc=0x%x "
+ "addr=0x%x sfsr=%s\n",
+ cpu_number(), pc, sfva, bits);
panic("kernel fault");
/* NOTREACHED */
}
Home |
Main Index |
Thread Index |
Old Index