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 Do not spam the console when sendin...
details: https://anonhg.NetBSD.org/src/rev/5ed02297cf99
branches: trunk
changeset: 780640:5ed02297cf99
user: martin <martin%NetBSD.org@localhost>
date: Wed Aug 01 09:07:35 2012 +0000
description:
Do not spam the console when sending a sigill due to a T_ILLINST trap,
new openssl probes for the cpu sub family/features by trying some new
instructions and catching sigill.
In all other cases, move the printf inside a #ifdef DEBUG.
diffstat:
sys/arch/sparc64/sparc64/trap.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 98bb8b92841c -r 5ed02297cf99 sys/arch/sparc64/sparc64/trap.c
--- a/sys/arch/sparc64/sparc64/trap.c Wed Aug 01 09:02:03 2012 +0000
+++ b/sys/arch/sparc64/sparc64/trap.c Wed Aug 01 09:07:35 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.176 2012/04/25 19:58:07 martin Exp $ */
+/* $NetBSD: trap.c,v 1.177 2012/08/01 09:07:35 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.176 2012/04/25 19:58:07 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.177 2012/08/01 09:07:35 martin Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@@ -625,13 +625,15 @@
preempt();
break;
- case T_ILLINST:
case T_INST_EXCEPT:
case T_TEXTFAULT:
+#ifdef DEBUG
/* This is not an MMU issue!!!! */
printf("trap: pid=%d.%d comm=%s textfault at %lx!! sending SIGILL due to trap %d: %s\n",
l->l_proc->p_pid, l->l_lid, l->l_proc->p_comm,
pc, type, type < N_TRAP_TYPES ? trap_type[type] : T);
+#endif
+ case T_ILLINST:
#if defined(DDB) && defined(DEBUG)
if (trapdebug & TDB_STOPSIG)
Debugger();
Home |
Main Index |
Thread Index |
Old Index