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

This commit is contained in:
kleink 2002-02-22 13:51:40 +00:00
parent 21fb786623
commit 543f1e7a2d
2 changed files with 7 additions and 2 deletions

View File

@ -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 */

View File

@ -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 @@ trap(frame)
uvmexp.traps++;
switch (type) {
case EXC_RUNMODETRC|EXC_USER:
/* FALLTHROUGH */
case EXC_TRC|EXC_USER:
KERNEL_PROC_LOCK(p);
frame->srr1 &= ~PSL_SE;