21 lines
271 B
ArmAsm
21 lines
271 B
ArmAsm
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
|