Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/sh3 general_exception: when printing current mo...
details: https://anonhg.NetBSD.org/src/rev/d3ff5bd8575e
branches: trunk
changeset: 761424:d3ff5bd8575e
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Jan 27 01:01:55 2011 +0000
description:
general_exception: when printing current mode in the panic message,
test "usermode" directly instead of testing for EXP_USER bit.
diffstat:
sys/arch/sh3/sh3/exception.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5d3abeefe562 -r d3ff5bd8575e sys/arch/sh3/sh3/exception.c
--- a/sys/arch/sh3/sh3/exception.c Thu Jan 27 00:19:27 2011 +0000
+++ b/sys/arch/sh3/sh3/exception.c Thu Jan 27 01:01:55 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exception.c,v 1.59 2011/01/14 02:06:30 rmind Exp $ */
+/* $NetBSD: exception.c,v 1.60 2011/01/27 01:01:55 uwe Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exception.c,v 1.59 2011/01/14 02:06:30 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exception.c,v 1.60 2011/01/27 01:01:55 uwe Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -257,7 +257,7 @@
printf("fatal %s", exp_type[expevt >> 5]);
else
printf("EXPEVT 0x%03x", expevt);
- printf(" in %s mode\n", expevt & EXP_USER ? "user" : "kernel");
+ printf(" in %s mode\n", usermode ? "user" : "kernel");
printf(" spc %x ssr %x \n", tf->tf_spc, tf->tf_ssr);
panic("general_exception");
Home |
Main Index |
Thread Index |
Old Index