diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2017-02-06 01:50:37 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2017-02-06 01:50:37 +0000 |
commit | a761e6095676790d8c9c84a83b5557e2f7b782b3 (patch) | |
tree | 0a148f9e22cd88d4f6f4315b9a13e61bac9a7fd7 | |
parent | c9c8cb5cabc6c576b68180e39f3d33f81f91f6b9 (diff) |
When determining whether or not to hatch into PAE mode, use the cpu_pae
flag variable instead of checking some pointer assignment made earlier
in pae_bootstrap.
ok guenther
-rw-r--r-- | sys/arch/i386/i386/mptramp.s | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/i386/i386/mptramp.s b/sys/arch/i386/i386/mptramp.s index aa480cd4e0c..3a7f94334e1 100644 --- a/sys/arch/i386/i386/mptramp.s +++ b/sys/arch/i386/i386/mptramp.s @@ -1,4 +1,4 @@ -/* $OpenBSD: mptramp.s,v 1.19 2016/05/24 02:15:38 mlarkin Exp $ */ +/* $OpenBSD: mptramp.s,v 1.20 2017/02/06 01:50:36 mlarkin Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -142,9 +142,8 @@ _TRMP_LABEL(mp_startup) /* Load base of page directory and enable mapping. */ movl %ecx,%cr3 # load ptd addr into mmu #ifndef SMALL_KERNEL - movl $_C_LABEL(pmap_pte_set_pae),%eax - cmpl RELOC(_C_LABEL(pmap_pte_set_p)),%eax - jne nopae + testl $0x1, RELOC(_C_LABEL(cpu_pae)) + jz nopae movl %cr4,%eax orl $CR4_PAE,%eax |