mu/kernel.soso/utils.asm
Kartik Agaram 46bb1d3157 5650 - support a second OS: soso
https://github.com/ozkl/soso

+ Much smaller than Linux; builds instantly
+ Supports graphics
- No network support
- Doesn't work on a cloud server (yet?)
2019-09-14 01:45:55 -07:00

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