Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm32/arm32 Make the kernel silent by default when ...
details: https://anonhg.NetBSD.org/src/rev/86f45aa19ecd
branches: trunk
changeset: 467866:86f45aa19ecd
user: mycroft <mycroft%NetBSD.org@localhost>
date: Tue Mar 30 10:10:57 1999 +0000
description:
Make the kernel silent by default when running crashme.
diffstat:
sys/arch/arm32/arm32/syscall.c | 4 +++-
sys/arch/arm32/arm32/undefined.c | 6 +++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diffs (59 lines):
diff -r 1600e6477f54 -r 86f45aa19ecd sys/arch/arm32/arm32/syscall.c
--- a/sys/arch/arm32/arm32/syscall.c Tue Mar 30 10:10:22 1999 +0000
+++ b/sys/arch/arm32/arm32/syscall.c Tue Mar 30 10:10:57 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.c,v 1.23 1999/03/24 05:50:55 mrg Exp $ */
+/* $NetBSD: syscall.c,v 1.24 1999/03/30 10:10:57 mycroft Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -272,11 +272,13 @@
else
callp += code;
+#ifdef VERBOSE_ARM32
/* Is the syscal valid ? */
if (callp->sy_call == sys_nosys) {
printf("syscall: nosys code=%d lr=%08x proc=%08x pid=%d %s\n",
code, frame->tf_pc, (u_int)p, p->p_pid, p->p_comm);
}
+#endif
argsize = callp->sy_argsize;
if (argsize > (regparams * sizeof(int)))
diff -r 1600e6477f54 -r 86f45aa19ecd sys/arch/arm32/arm32/undefined.c
--- a/sys/arch/arm32/arm32/undefined.c Tue Mar 30 10:10:22 1999 +0000
+++ b/sys/arch/arm32/arm32/undefined.c Tue Mar 30 10:10:57 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: undefined.c,v 1.15 1999/03/24 05:50:55 mrg Exp $ */
+/* $NetBSD: undefined.c,v 1.16 1999/03/30 10:10:57 mycroft Exp $ */
/*
* Copyright (c) 1995 Mark Brinicombe.
@@ -87,8 +87,10 @@
p = curproc;
if (p == NULL)
p = &proc0;
+#ifdef VERBOSE_ARM32
log(LOG_ERR, "Undefined instruction 0x%08x @ 0x%08x in process %s (pid %d)\n",
instruction, address, p->p_comm, p->p_pid);
+#endif
return(1);
}
@@ -191,6 +193,7 @@
frame, fault_code)) != 0) {
/* Fault has not been handled */
+#ifdef VERBOSE_ARM32
s = spltty();
if ((fault_instruction & 0x0f000010) == 0x0e000000) {
@@ -212,6 +215,7 @@
}
(void)splx(s);
+#endif
if ((fault_code & FAULT_USER) == 0) {
printf("Undefined instruction in kernel: Heavy man !\n");
Home |
Main Index |
Thread Index |
Old Index