Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern NBPG -> PAGE_SIZE.
details: https://anonhg.NetBSD.org/src/rev/b13431940dbe
branches: trunk
changeset: 499232:b13431940dbe
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Nov 14 22:14:53 2000 +0000
description:
NBPG -> PAGE_SIZE.
diffstat:
sys/kern/exec_elf32.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 8004d86ce073 -r b13431940dbe sys/kern/exec_elf32.c
--- a/sys/kern/exec_elf32.c Tue Nov 14 22:13:20 2000 +0000
+++ b/sys/kern/exec_elf32.c Tue Nov 14 22:14:53 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf32.c,v 1.56 2000/11/13 21:32:15 jdolecek Exp $ */
+/* $NetBSD: exec_elf32.c,v 1.57 2000/11/14 22:14:53 thorpej Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -87,6 +87,8 @@
#include <sys/mount.h>
#include <sys/stat.h>
+#include <uvm/uvm_extern.h>
+
#ifdef COMPAT_NETBSD32
#include <compat/netbsd32/netbsd32_exec.h>
#endif
@@ -204,7 +206,7 @@
a++;
a->a_type = AT_PAGESZ;
- a->a_v = NBPG;
+ a->a_v = PAGE_SIZE;
a++;
a->a_type = AT_BASE;
@@ -704,8 +706,8 @@
#ifdef ELF_MAP_PAGE_ZERO
/* Dell SVR4 maps page zero, yeuch! */
- NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_readvn, NBPG, 0, epp->ep_vp, 0,
- VM_PROT_READ);
+ NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_readvn, PAGE_SIZE, 0,
+ epp->ep_vp, 0, VM_PROT_READ);
#endif
free((char *)ph, M_TEMP);
vn_marktext(epp->ep_vp);
Home |
Main Index |
Thread Index |
Old Index