PERFORCE change 28189 for review
Peter Wemm
peter at FreeBSD.org
Fri Apr 4 23:03:13 PST 2003
http://perforce.freebsd.org/chv.cgi?CH=28189
Change 28189 by peter at peter_overcee on 2003/04/04 23:02:12
Hook up level 3 and level 4 page directory glue
(stolen from Jake's PAE diffs)
Affected files ...
.. //depot/projects/hammer/sys/x86_64/x86_64/locore.s#23 edit
Differences ...
==== //depot/projects/hammer/sys/x86_64/x86_64/locore.s#23 (text+ko) ====
@@ -298,9 +298,10 @@
movl %esi,R(KPTphys)
/* Allocate Page Table Directory */
- /* XXX only need 32 bytes (easier for now) */
ALLOCPAGES(1)
movl %esi,R(IdlePML4)
+ ALLOCPAGES(1)
+ movl %esi,R(IdlePDP)
ALLOCPAGES(NPGPTD)
movl %esi,R(IdlePTD)
@@ -338,6 +339,10 @@
movl $1, %ecx
fillkptphys($PG_RW)
+ movl R(IdlePDP), %eax
+ movl $1, %ecx
+ fillkptphys($PG_RW)
+
movl R(IdlePTD), %eax
movl $NPGPTD, %ecx
fillkptphys($PG_RW)
@@ -378,6 +383,11 @@
movl R(IdlePTD), %eax
xorl %ebx, %ebx
movl $NPGPTD, %ecx
+ fillkpt(R(IdlePDP), $0x0)
+
+ movl R(IdlePDP), %eax
+ xorl %ebx, %ebx
+ movl $1, %ecx
fillkpt(R(IdlePML4), $0x0)
ret
More information about the p4-projects
mailing list