summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorariane <ariane@openbsd.org>2011-05-17 18:06:13 +0000
committerariane <ariane@openbsd.org>2011-05-17 18:06:13 +0000
commita61bdea719912299afb65aad5297d45ba47f3962 (patch)
tree81ebd91141b107d6c24c860927dfbd07454dec96
parentsmtpd now uses an auth_backend API to authenticate users that are allowed (diff)
downloadwireguard-openbsd-a61bdea719912299afb65aad5297d45ba47f3962.tar.xz
wireguard-openbsd-a61bdea719912299afb65aad5297d45ba47f3962.zip
Use the same define checks as used in machdep.c for the trampoline code.
from Brad ok mikeb@
-rw-r--r--sys/arch/amd64/amd64/pmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c
index f9e896ed005..53ca4cfe37d 100644
--- a/sys/arch/amd64/amd64/pmap.c
+++ b/sys/arch/amd64/amd64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.62 2011/04/15 15:16:57 chl Exp $ */
+/* $OpenBSD: pmap.c,v 1.63 2011/05/17 18:06:13 ariane Exp $ */
/* $NetBSD: pmap.c,v 1.3 2003/05/08 18:13:13 thorpej Exp $ */
/*
@@ -289,10 +289,8 @@ extern paddr_t msgbuf_paddr;
extern vaddr_t idt_vaddr; /* we allocate IDT early */
extern paddr_t idt_paddr;
-#ifdef _LP64
extern vaddr_t lo32_vaddr;
extern vaddr_t lo32_paddr;
-#endif
vaddr_t virtual_avail;
extern int end;
@@ -649,7 +647,8 @@ pmap_bootstrap(paddr_t first_avail, paddr_t max_pa)
idt_paddr = first_avail; /* steal a page */
first_avail += 2 * PAGE_SIZE;
-#ifdef _LP64
+#if defined(MULTIPROCESSOR) || \
+ (NACPI > 0 && !defined(SMALL_KERNEL))
/*
* Grab a page below 4G for things that need it (i.e.
* having an initial %cr3 for the MP trampoline).
@@ -659,6 +658,7 @@ pmap_bootstrap(paddr_t first_avail, paddr_t max_pa)
lo32_paddr = first_avail;
first_avail += PAGE_SIZE;
#endif
+
/*
* init the global lists.
*/