]> git.dujemihanovic.xyz Git - nameless-os.git/blobdiff - boot/x86/stage3/loader.s
Enable paging in bootloader
[nameless-os.git] / boot / x86 / stage3 / loader.s
index ec08c61bd0f5d00644cf471ebe26274f93153c9e..2967c6ee7b1d9f00c1d9fb1ef732f02a10c3847e 100644 (file)
@@ -160,7 +160,11 @@ bits 32
        mov ss, ax
        mov fs, ax
        mov gs, ax
-       call 0x100000
+
+       call load_paging_structs
+       call enable_paging
+
+       call 0xc0000000
        hlt
        jmp $-1
 
@@ -186,3 +190,5 @@ ss_s: db "SS: ", 0
 space: db " ", 0
 hex_delm: db "0x", 0
 newline: db 0xd, 0xa, 0
+
+%include "paging.s"