Git - code.swisschili.sh
code.swisschili.sh
/
bluejay
/
8b5ec7a9a45e19ceb7633371fa19f1fa6e7252cd
/
.
/
src
/
kernel
/
x86_32
/
switch_table.s
blob: c8e626041866d96082f4ad7bccc09a5a971abd8a [
file
] [
log
] [
blame
]
[
section .text
]
[
bits
32
]
[
global load_page_directory
]
load_page_directory
:
mov ecx
,
[
esp
+
4
]
;
Pointer to directory
mov cr3
,
ecx
ret
[
global enable_paging
]
enable_paging
:
mov ecx
,
cr0
or eax
,
0x80000000
mov cr0
,
ecx
ret