Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern fix compilation for VM_MIN_ADDRESS == 0
details: https://anonhg.NetBSD.org/src/rev/9bf01363b93c
branches: trunk
changeset: 768750:9bf01363b93c
user: christos <christos%NetBSD.org@localhost>
date: Fri Aug 26 06:56:11 2011 +0000
description:
fix compilation for VM_MIN_ADDRESS == 0
diffstat:
sys/kern/kern_exec.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r e06df27b5e24 -r 9bf01363b93c sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Fri Aug 26 06:18:16 2011 +0000
+++ b/sys/kern/kern_exec.c Fri Aug 26 06:56:11 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.319 2011/08/25 19:54:30 reinoud Exp $ */
+/* $NetBSD: kern_exec.c,v 1.320 2011/08/26 06:56:11 christos 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.319 2011/08/25 19:54:30 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.320 2011/08/26 06:56:11 christos Exp $");
#include "opt_ktrace.h"
#include "opt_modular.h"
@@ -377,6 +377,7 @@
error = ENOEXEC;
break;
}
+#if VM_MIN_ADDRESS > 0
/* Seems ok: check that entry point is not too low */
if (epp->ep_entry < VM_MIN_ADDRESS) {
aprint_verbose("check_exec: rejecting due to "
@@ -384,6 +385,7 @@
error = ENOEXEC;
break;
}
+#endif
/* check limits */
if ((epp->ep_tsize > MAXTSIZ) ||
Home |
Main Index |
Thread Index |
Old Index