Module Name: src
Committed By: martin
Date: Wed Aug 1 09:07:36 UTC 2012
Modified Files:
src/sys/arch/sparc64/sparc64: trap.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.176 -r1.177 src/sys/arch/sparc64/sparc64/trap.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/sparc64/sparc64/trap.c
diff -u src/sys/arch/sparc64/sparc64/trap.c:1.176 src/sys/arch/sparc64/sparc64/trap.c:1.177
--- src/sys/arch/sparc64/sparc64/trap.c:1.176 Wed Apr 25 19:58:07 2012
+++ src/sys/arch/sparc64/sparc64/trap.c Wed Aug 1 09:07:35 2012
@@ -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 @@ badtrap:
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();