Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa Correct the list of traps that we need to...



details:   https://anonhg.NetBSD.org/src/rev/0c8bf9bc1f80
branches:  trunk
changeset: 753371:0c8bf9bc1f80
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Mar 24 12:56:30 2010 +0000

description:
Correct the list of traps that we need to get the va and space from
ii[os]q.

>From OpenBSD.

diffstat:

 sys/arch/hppa/hppa/trap.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r dab4f78e3c62 -r 0c8bf9bc1f80 sys/arch/hppa/hppa/trap.c
--- a/sys/arch/hppa/hppa/trap.c Wed Mar 24 12:38:55 2010 +0000
+++ b/sys/arch/hppa/hppa/trap.c Wed Mar 24 12:56:30 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.83 2010/03/22 23:29:11 skrll Exp $  */
+/*     $NetBSD: trap.c,v 1.84 2010/03/24 12:56:30 skrll Exp $  */
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.83 2010/03/22 23:29:11 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.84 2010/03/24 12:56:30 skrll Exp $");
 
 /* #define INTRDEBUG */
 /* #define TRAPDEBUG */
@@ -498,8 +498,10 @@
 
        trapnum = type & ~T_USER;
        opcode = frame->tf_iir;
-       if (trapnum == T_ITLBMISS || trapnum == T_ITLBMISSNA ||
-           trapnum == T_IBREAK || trapnum == T_TAKENBR) {
+
+       if (trapnum <= T_EXCEPTION || trapnum == T_HIGHERPL ||
+           trapnum == T_LOWERPL || trapnum == T_TAKENBR ||
+           trapnum == T_IDEBUG || trapnum == T_PERFMON) {
                va = frame->tf_iioq_head;
                space = frame->tf_iisq_head;
                vftype = VM_PROT_EXECUTE;



Home | Main Index | Thread Index | Old Index