Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc Handle the 601's Run Mode/Trace Exception a...



details:   https://anonhg.NetBSD.org/src/rev/ce4b43feacae
branches:  trunk
changeset: 522601:ce4b43feacae
user:      kleink <kleink%NetBSD.org@localhost>
date:      Fri Feb 22 13:51:40 2002 +0000

description:
Handle the 601's Run Mode/Trace Exception as well.

diffstat:

 sys/arch/powerpc/include/trap.h |  5 ++++-
 sys/arch/powerpc/powerpc/trap.c |  4 +++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r 37272cca4ec9 -r ce4b43feacae sys/arch/powerpc/include/trap.h
--- a/sys/arch/powerpc/include/trap.h   Fri Feb 22 13:46:30 2002 +0000
+++ b/sys/arch/powerpc/include/trap.h   Fri Feb 22 13:51:40 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.h,v 1.6 2001/06/13 06:01:49 simonb Exp $  */
+/*     $NetBSD: trap.h,v 1.7 2002/02/22 13:51:40 kleink Exp $  */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -47,6 +47,9 @@
 #define        EXC_TRC         0x0d00          /* Trace */
 #define        EXC_FPA         0x0e00          /* Floating-point Assist */
 
+/* The following is only available on the 601: */
+#define        EXC_RUNMODETRC  0x2000          /* Run Mode/Trace Exception */
+
 /* The following are only available on 7400(G4): */
 #define        EXC_VEC         0x0f20          /* AltiVec Unavailable */
 #define        EXC_VECAST      0x1600          /* AltiVec Assist */
diff -r 37272cca4ec9 -r ce4b43feacae sys/arch/powerpc/powerpc/trap.c
--- a/sys/arch/powerpc/powerpc/trap.c   Fri Feb 22 13:46:30 2002 +0000
+++ b/sys/arch/powerpc/powerpc/trap.c   Fri Feb 22 13:51:40 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.56 2002/02/14 07:08:14 chs Exp $    */
+/*     $NetBSD: trap.c,v 1.57 2002/02/22 13:51:40 kleink Exp $ */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -102,6 +102,8 @@
        uvmexp.traps++;
 
        switch (type) {
+       case EXC_RUNMODETRC|EXC_USER:
+               /* FALLTHROUGH */
        case EXC_TRC|EXC_USER:
                KERNEL_PROC_LOCK(p);
                frame->srr1 &= ~PSL_SE;



Home | Main Index | Thread Index | Old Index