This website works better with JavaScript.
Home
Explore
Help
Sign In
er1n
/
sparkle
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
boot.asm: recursively map p4[511] -> p4
master
3moon
8 years ago
parent
d889ff14b2
commit
7d7bf0daaf
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
setup_ptables:
; p4[511] -> p4 (recursive!)
mov
eax
,
p4_table
or
eax
,
0b
11
; present + writable
mov
[
p4_table
+
511
*
8
],
eax
; p4[0] -> p3
mov
eax
,
p3_table
or
eax
,
0b
11
; present + writable
Write
Preview
Loading…
Cancel
Save