about summary refs log tree commit diff stats
path: root/tools/iso/kernel.soso/utils.asm
blob: 568bfb02766280e2971f57117f9f775aece08637 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[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