Browse Source

boot.asm: recursively map p4[511] -> p4

master
3moon 8 years ago
parent
commit
7d7bf0daaf
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/arch/x86_64/boot.asm

+ 5
- 0
src/arch/x86_64/boot.asm View File

@ -89,6 +89,11 @@ check_long_mode:
jmp error jmp error
setup_ptables: setup_ptables:
; p4[511] -> p4 (recursive!)
mov eax, p4_table
or eax, 0b11 ; present + writable
mov [p4_table + 511*8], eax
; p4[0] -> p3 ; p4[0] -> p3
mov eax, p3_table mov eax, p3_table
or eax, 0b11 ; present + writable or eax, 0b11 ; present + writable


Loading…
Cancel
Save