summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2006-08-25 13:04:17 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2006-08-25 13:04:17 +0000
commit5a6bcf8bb7c3927426097e85184a3213c0b83bcd (patch)
tree69b9008778bad3c897805bb468b99b4dc0b61b58 /sys/arch
parent4deaff4fca34ec8843b35dd4b92106ed5575ce7b (diff)
forget about >4g memory if not switched to pae in order to disable all the bounce-buffering logic
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/pmapae.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/pmapae.c b/sys/arch/i386/i386/pmapae.c
index 3a8256929cc..7e5bbb0bf41 100644
--- a/sys/arch/i386/i386/pmapae.c
+++ b/sys/arch/i386/i386/pmapae.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmapae.c,v 1.4 2006/08/17 17:09:51 mickey Exp $ */
+/* $OpenBSD: pmapae.c,v 1.5 2006/08/25 13:04:16 mickey Exp $ */
/*
* Copyright (c) 2006 Michael Shalayeff
@@ -819,8 +819,10 @@ pmap_bootstrap_pae()
vaddr_t va, eva;
int i, pn, pe;
- if (!cpu_pae || avail_end >= avail_end2 || !(cpu_feature & CPUID_PAE))
+ if (!cpu_pae || avail_end >= avail_end2 || !(cpu_feature & CPUID_PAE)){
+ avail_end2 = avail_end;
return;
+ }
va = (vaddr_t)kpm->pm_pdir;
kpm->pm_pdidx[0] = (va + 0*NBPG - KERNBASE) | PG_V;