Module Name: src
Committed By: uwe
Date: Thu Jan 27 01:01:56 UTC 2011
Modified Files:
src/sys/arch/sh3/sh3: exception.c
Log Message:
general_exception: when printing current mode in the panic message,
test "usermode" directly instead of testing for EXP_USER bit.
To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/sh3/sh3/exception.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sh3/sh3/exception.c
diff -u src/sys/arch/sh3/sh3/exception.c:1.59 src/sys/arch/sh3/sh3/exception.c:1.60
--- src/sys/arch/sh3/sh3/exception.c:1.59 Fri Jan 14 02:06:30 2011
+++ src/sys/arch/sh3/sh3/exception.c Thu Jan 27 01:01:55 2011
@@ -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");