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

This commit is contained in:
reinoud 2012-01-02 22:02:51 +00:00
parent 6e429eb748
commit b9d601ff9f
1 changed files with 4 additions and 2 deletions

View File

@ -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>
@ -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 *info, void *ctx)
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 *info, void *ctx)
if (va == 0)
panic("NULL deref\n");
#endif
#endif
//printf("memaccess error : va = %p\n", (void *) va);
/* copy this state to return to */