Module Name:    src
Committed By:   reinoud
Date:           Mon Jan  2 22:02:51 UTC 2012

Modified Files:
        src/sys/arch/usermode/usermode: trap.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/usermode/usermode/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/usermode/usermode/trap.c
diff -u src/sys/arch/usermode/usermode/trap.c:1.48 src/sys/arch/usermode/usermode/trap.c:1.49
--- src/sys/arch/usermode/usermode/trap.c:1.48	Mon Dec 26 22:04:35 2011
+++ src/sys/arch/usermode/usermode/trap.c	Mon Jan  2 22:02:51 2012
@@ -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 <[email protected]>
@@ -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 @@ mem_access_handler(int sig, siginfo_t *i
 	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 @@ mem_access_handler(int sig, siginfo_t *i
 	if (va == 0)
 		panic("NULL deref\n");
 #endif
+#endif
 
 //printf("memaccess error : va = %p\n", (void *) va);
 	/* copy this state to return to */

Reply via email to