Module Name:    src
Committed By:   reinoud
Date:           Fri Aug 26 09:07:48 UTC 2011

Modified Files:
        src/sys/kern: kern_exec.c

Log Message:
Fix check for VM_MIN_ADDRESS since it doesn't need to be a constant


To generate a diff of this commit:
cvs rdiff -u -r1.320 -r1.321 src/sys/kern/kern_exec.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/kern/kern_exec.c
diff -u src/sys/kern/kern_exec.c:1.320 src/sys/kern/kern_exec.c:1.321
--- src/sys/kern/kern_exec.c:1.320	Fri Aug 26 06:56:11 2011
+++ src/sys/kern/kern_exec.c	Fri Aug 26 09:07:48 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_exec.c,v 1.320 2011/08/26 06:56:11 christos Exp $	*/
+/*	$NetBSD: kern_exec.c,v 1.321 2011/08/26 09:07:48 reinoud Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.320 2011/08/26 06:56:11 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.321 2011/08/26 09:07:48 reinoud Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_modular.h"
@@ -377,7 +377,7 @@
 				error = ENOEXEC;
 				break;
 			}
-#if VM_MIN_ADDRESS > 0
+#ifdef VM_CHECK_MIN_ADDRESS
 			/* Seems ok: check that entry point is not too low */
 			if (epp->ep_entry < VM_MIN_ADDRESS) {
 				aprint_verbose("check_exec: rejecting due to "

Reply via email to