46bb1d3157
https://github.com/ozkl/soso + Much smaller than Linux; builds instantly + Supports graphics - No network support - Doesn't work on a cloud server (yet?)
19 lines
257 B
NASM
19 lines
257 B
NASM
[GLOBAL readEip]
|
|
readEip:
|
|
pop eax
|
|
jmp eax
|
|
|
|
[GLOBAL disablePaging]
|
|
disablePaging:
|
|
mov edx, cr0
|
|
and edx, 0x7fffffff
|
|
mov cr0, edx
|
|
ret
|
|
|
|
[GLOBAL enablePaging]
|
|
enablePaging:
|
|
mov edx, cr0
|
|
or edx, 0x80000000
|
|
mov cr0, edx
|
|
ret
|