Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix check for VM_MIN_ADDRESS since it doesn't need ...
details: https://anonhg.NetBSD.org/src/rev/06bb213214f8
branches: trunk
changeset: 768753:06bb213214f8
user: reinoud <reinoud%NetBSD.org@localhost>
date: Fri Aug 26 09:07:48 2011 +0000
description:
Fix check for VM_MIN_ADDRESS since it doesn't need to be a constant
diffstat:
sys/kern/kern_exec.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 776f87a16f09 -r 06bb213214f8 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Fri Aug 26 09:01:07 2011 +0000
+++ b/sys/kern/kern_exec.c Fri Aug 26 09:07:48 2011 +0000
@@ -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 "
Home |
Main Index |
Thread Index |
Old Index