mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Recursive map the P4 table
This commit is contained in:
@@ -85,6 +85,11 @@ check_long_mode:
|
|||||||
jmp error
|
jmp error
|
||||||
|
|
||||||
set_up_page_tables:
|
set_up_page_tables:
|
||||||
|
; map P4 table recursively
|
||||||
|
mov eax, p4_table
|
||||||
|
or eax, 0b11 ; present + writable
|
||||||
|
mov [p4_table + 511 * 8], eax
|
||||||
|
|
||||||
; map first P4 entry to P3 table
|
; map first P4 entry to P3 table
|
||||||
mov eax, p3_table
|
mov eax, p3_table
|
||||||
or eax, 0b11 ; present + writable
|
or eax, 0b11 ; present + writable
|
||||||
|
|||||||
Reference in New Issue
Block a user