add basic paging functionality
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
|
||||
|
||||
global loadPageDirectory
|
||||
loadPageDirectory:
|
||||
push ebp
|
||||
mov ebp, esp
|
||||
mov eax, [esp+8]
|
||||
mov cr3, eax
|
||||
mov esp, ebp
|
||||
pop ebp
|
||||
ret
|
||||
|
||||
global enablePaging
|
||||
enablePaging:
|
||||
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