Git - code.swisschili.sh
code.swisschili.sh
/
bluejay
/
3e57d7c3f70371f9acf95326c2f5c2cd0e8d2d15
/
.
/
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