diff options
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/pmapae.c | 6 |
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; |