Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode/usermode Remove tests that are dubious and...



details:   https://anonhg.NetBSD.org/src/rev/f62c09f2f9d7
branches:  trunk
changeset: 772413:f62c09f2f9d7
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Mon Jan 02 22:02:51 2012 +0000

description:
Remove tests that are dubious and should be (re)moved anyway.

diffstat:

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

diffs (34 lines):

diff -r 0bef7a23d625 -r f62c09f2f9d7 sys/arch/usermode/usermode/trap.c
--- a/sys/arch/usermode/usermode/trap.c Mon Jan 02 21:48:14 2012 +0000
+++ b/sys/arch/usermode/usermode/trap.c Mon Jan 02 22:02:51 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.48 2011/12/26 22:04:35 jmcneill Exp $ */
+/* $NetBSD: trap.c,v 1.49 2012/01/02 22:02:51 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Reinoud Zandijk <reinoud%netbsd.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.48 2011/12/26 22:04:35 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.49 2012/01/02 22:02:51 reinoud Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -150,6 +150,7 @@
        va = (vaddr_t) info->si_addr;
        va = trunc_page(va);
 
+#if 0  /* disabled for now, these checks need to move */
 #ifdef DIAGNOSTIC
        /* sanity */
        if ((va < VM_MIN_ADDRESS) || (va >= VM_MAX_KERNEL_ADDRESS))
@@ -159,6 +160,7 @@
        if (va == 0)
                panic("NULL deref\n");
 #endif
+#endif
 
 //printf("memaccess error : va = %p\n", (void *) va);
        /* copy this state to return to */



Home | Main Index | Thread Index | Old Index