summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-06-24 21:24:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-06-24 21:24:04 +0000
commiteb30d8959a1448ff7a7b73c410533fd80508f0af (patch)
treecfc8de5d0358f7748bb5089529c342104180deba /sys/arch/i386
parent3adb826ceb6fc3ab73eae18d801296aaefa6c8aa (diff)
On user/kernel shared page table machines, do not let processes map their
own page 0, as discussed with miod (and many others previously, including art and toby). On sparc, make this __LDPGSZ because PAGE_SIZE is non-constant ok miod tedu
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/include/vmparam.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/include/vmparam.h b/sys/arch/i386/include/vmparam.h
index 4e1e7ed7ef2..e871997fd43 100644
--- a/sys/arch/i386/include/vmparam.h
+++ b/sys/arch/i386/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.39 2007/06/01 18:57:02 miod Exp $ */
+/* $OpenBSD: vmparam.h,v 1.40 2008/06/24 21:24:03 deraadt Exp $ */
/* $NetBSD: vmparam.h,v 1.15 1994/10/27 04:16:34 cgd Exp $ */
/*-
@@ -96,7 +96,7 @@
#define DEADBEEF1 0xefffaabb /* pool's filler */
/* user/kernel map constants */
-#define VM_MIN_ADDRESS ((vaddr_t)0)
+#define VM_MIN_ADDRESS ((vaddr_t)PAGE_SIZE)
#define VM_MAXUSER_ADDRESS ((vaddr_t)((PDSLOT_PTE<<PDSHIFT) - USPACE))
#define VM_MAX_ADDRESS ((vaddr_t)((PDSLOT_PTE<<PDSHIFT) + \
(PDSLOT_PTE<<PGSHIFT)))