Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/sys/arch/sparc64/sparc64 Pull up revision 1.177 (requeste...



details:   https://anonhg.NetBSD.org/src/rev/1d3836b51a33
branches:  netbsd-6
changeset: 774398:1d3836b51a33
user:      jdc <jdc%NetBSD.org@localhost>
date:      Thu Aug 09 06:55:01 2012 +0000

description:
Pull up revision 1.177 (requested by martin in ticket #462).

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 898bae1bc5dd -r 1d3836b51a33 sys/arch/sparc64/sparc64/trap.c
--- a/sys/arch/sparc64/sparc64/trap.c   Thu Aug 09 06:52:14 2012 +0000
+++ b/sys/arch/sparc64/sparc64/trap.c   Thu Aug 09 06:55:01 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.168.8.3 2012/04/26 02:57:48 riz Exp $ */
+/*     $NetBSD: trap.c,v 1.168.8.4 2012/08/09 06:55:01 jdc 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.168.8.3 2012/04/26 02:57:48 riz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.168.8.4 2012/08/09 06:55:01 jdc Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -627,13 +627,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