Move the kernel to high memory

This commit is contained in:
2017-11-17 19:49:42 +01:00
parent 8f8e03de10
commit 663668ff93
4 changed files with 31 additions and 11 deletions

View File

@@ -5,17 +5,18 @@
.align PAGE_SIZE
.global BootP4
BootP4:
.quad offset BootP3 + (PAGE_PRESENT | PAGE_WRITE)
.rept ENTRIES_PER_PT - 1
.quad offset V2P(BootP3) + (PAGE_PRESENT | PAGE_WRITE)
.rept ENTRIES_PER_PT - 2
.quad 0
.endr
.quad offset V2P(BootP3) + (PAGE_PRESENT | PAGE_WRITE)
BootP3:
.quad offset BootP2 + (PAGE_PRESENT | PAGE_WRITE)
.quad offset V2P(BootP2) + (PAGE_PRESENT | PAGE_WRITE)
.rept ENTRIES_PER_PT - 1
.quad 0
.endr
BootP2:
.quad offset BootP1 + (PAGE_PRESENT | PAGE_WRITE)
.quad offset V2P(BootP1) + (PAGE_PRESENT | PAGE_WRITE)
.rept ENTRIES_PER_PT - 1
.quad 0
.endr