paging is now enabled with __shaky__ code
This commit is contained in:
20
kernel/arch/paging/paging_src.s
Normal file
20
kernel/arch/paging/paging_src.s
Normal file
@ -0,0 +1,20 @@
|
||||
global load_page_directory
|
||||
load_page_directory:
|
||||
push ebp
|
||||
mov esp, ebp
|
||||
mov eax, [esp + 4]
|
||||
mov cr3, eax
|
||||
mov esp, ebp
|
||||
pop ebp
|
||||
ret
|
||||
|
||||
global enable_paging
|
||||
enable_paging:
|
||||
push ebp
|
||||
mov ebp, esp
|
||||
mov eax, cr0
|
||||
or eax, 0x80000000
|
||||
mov cr0, eax
|
||||
mov esp, ebp
|
||||
pop ebp
|
||||
ret
|
Reference in New Issue
Block a user