Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/arch/mvme68k/mvme68k Pull up revision 1.33 (request...



details:   https://anonhg.NetBSD.org/src/rev/66cb05ffbda1
branches:  netbsd-1-4
changeset: 469740:66cb05ffbda1
user:      he <he%NetBSD.org@localhost>
date:      Sun Nov 21 15:42:03 1999 +0000

description:
Pull up revision 1.33 (requested by itohy):
  Fix the problem where single-step tracing of a trap instruction
  makes the system fall into kernel debugger.

diffstat:

 sys/arch/mvme68k/mvme68k/trap.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r f2f1d5536723 -r 66cb05ffbda1 sys/arch/mvme68k/mvme68k/trap.c
--- a/sys/arch/mvme68k/mvme68k/trap.c   Sun Nov 21 15:41:35 1999 +0000
+++ b/sys/arch/mvme68k/mvme68k/trap.c   Sun Nov 21 15:42:03 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.30 1999/03/26 23:41:32 mycroft Exp $        */
+/*     $NetBSD: trap.c,v 1.30.2.1 1999/11/21 15:42:03 he Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -486,10 +486,9 @@
         * SUN 3.x traps get passed through as T_TRAP15 and are not really
         * supported yet.
         *
-        * XXX: We should never get kernel-mode T_TRACE or T_TRAP15
+        * XXX: We should never get kernel-mode T_TRAP15
         * XXX: because locore.s now gives them special treatment.
         */
-       case T_TRACE:           /* kernel trace trap */
        case T_TRAP15:          /* kernel breakpoint */
 #ifdef DEBUG
                printf("unexpected kernel trace trap, type = %d\n", type);
@@ -499,7 +498,6 @@
                return;
 
        case T_TRACE|T_USER:    /* user trace trap */
-       case T_TRAP15|T_USER:   /* SUN user trace trap */
 #ifdef COMPAT_SUNOS
                /*
                 * SunOS uses Trap #2 for a "CPU cache flush".
@@ -511,6 +509,9 @@
                        return;
                }
 #endif
+               /* FALLTHROUGH */
+       case T_TRACE:           /* tracing a trap instruction */
+       case T_TRAP15|T_USER:   /* SUN user trace trap */
                frame.f_sr &= ~PSL_T;
                i = SIGTRAP;
                break;



Home | Main Index | Thread Index | Old Index