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 #if 0 out the trap checks around tf_iioq_...



details:   https://anonhg.NetBSD.org/src/rev/8801855a97b4
branches:  trunk
changeset: 758572:8801855a97b4
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Nov 09 06:41:03 2010 +0000

description:
#if 0 out the trap checks around tf_iioq_{head,tail}.  The sti(4) code
can/will trigger them.

diffstat:

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

diffs (43 lines):

diff -r d8eb3fc82a55 -r 8801855a97b4 sys/arch/hppa/hppa/trap.c
--- a/sys/arch/hppa/hppa/trap.c Tue Nov 09 00:11:37 2010 +0000
+++ b/sys/arch/hppa/hppa/trap.c Tue Nov 09 06:41:03 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.93 2010/07/07 01:18:39 chs Exp $    */
+/*     $NetBSD: trap.c,v 1.94 2010/11/09 06:41:03 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.93 2010/07/07 01:18:39 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.94 2010/11/09 06:41:03 skrll Exp $");
 
 /* #define INTRDEBUG */
 /* #define TRAPDEBUG */
@@ -407,8 +407,10 @@
 frame_sanity_check(const char *func, int line, int type, struct trapframe *tf,
     struct lwp *l)
 {
+#if 0
        extern int kernel_text;
        extern int etext;
+#endif
        extern register_t kpsw;
 
 #define SANITY(e)                                      \
@@ -445,11 +447,12 @@
                 */
                if ((type & ~T_USER) == T_INTERRUPT)
                        goto out;
-
+#if 0
                SANITY(tf->tf_iioq_head >= (u_int) &kernel_text);
                SANITY(tf->tf_iioq_head < (u_int) &etext);
                SANITY(tf->tf_iioq_tail >= (u_int) &kernel_text);
                SANITY(tf->tf_iioq_tail < (u_int) &etext);
+#endif
 
                maxsp = uv + USPACE + PAGE_SIZE;
                minsp = uv + PAGE_SIZE;



Home | Main Index | Thread Index | Old Index