]> git.dujemihanovic.xyz Git - nameless-os.git/blobdiff - boot/x86/stage3/loader.s
Get memory map from BIOS E820
[nameless-os.git] / boot / x86 / stage3 / loader.s
index 2967c6ee7b1d9f00c1d9fb1ef732f02a10c3847e..0ca0ea6012591eaea6b0c573bfb7edb961b65eb1 100644 (file)
@@ -64,6 +64,8 @@ _start:
        call read_clus_chain_unreal ; load kernel
        print kernel_loaded
        
+       call get_e820_map
+
        cli
        lgdt [gdt]
        mov eax, cr0
@@ -151,6 +153,7 @@ memcpy:
 %include "../fat32/fat32.s"
 %include "gdt.s"
 %include "print.s"
+%include "e820.s"
 
 in_protected:
 bits 32