summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2006-05-06 14:42:33 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2006-05-06 14:42:33 +0000
commitca97712ba2f98103c2975a26058d50595a66adb3 (patch)
tree9eda8327bc51c84d1d344353eda2338f9efebe41 /sys/arch
parent77ee1d3e549db8de8532ff4d95ede446ceb212b0 (diff)
somehow PTDsize got lost from the pae diff; found by kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/locore.s5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/locore.s b/sys/arch/i386/i386/locore.s
index 91010290ac4..28e6fa5e5ae 100644
--- a/sys/arch/i386/i386/locore.s
+++ b/sys/arch/i386/i386/locore.s
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.s,v 1.100 2006/04/27 15:37:51 mickey Exp $ */
+/* $OpenBSD: locore.s,v 1.101 2006/05/06 14:42:32 mickey Exp $ */
/* $NetBSD: locore.s,v 1.145 1996/05/03 19:41:19 christos Exp $ */
/*-
@@ -253,6 +253,7 @@ _C_LABEL(bootargv): .long 0 # /boot argv
_C_LABEL(bootdev): .long 0 # device we booted from
_C_LABEL(proc0paddr): .long 0
_C_LABEL(PTDpaddr): .long 0 # paddr of PTD, for libkvm
+_C_LABEL(PTDsize): .long NBPG # size of PTD, for libkvm
.space 512
tmpstk:
@@ -2339,6 +2340,8 @@ ENTRY(cpu_paenable)
movl 12(%esp), %eax
subl $KERNBASE, %eax
movl %eax, %cr3 /* reload real PDPT */
+ movl $4*NBPG, %eax
+ movl %eax, _C_LABEL(PTDsize)
xorl %eax, %eax
popl %edi