]> git.dujemihanovic.xyz Git - nameless-os.git/blobdiff - boot/x86/stage3/e820.s
Compile stage3 in ELF format
[nameless-os.git] / boot / x86 / stage3 / e820.s
index 247b3614cf83dcb8a754759ec4edd345e5193e0f..2d1780bfb48ac6f23e917971150612560dc1b3e1 100644 (file)
@@ -1,6 +1,7 @@
 ; Code for getting the BIOS E820 memory map
 
 bits 16
+section .text
 
 ; Return: ECX - number of entries, DI - pointer to map
 get_e820_map:
@@ -61,5 +62,6 @@ get_e820_map:
                hlt
                jmp $-1
 
+section .rodata
 no_e820: db "BIOS does not support E820, cannot proceed!", 0xd, 0xa, 0
 e820_unexpected: db "Unexpected value in EAX after getting map entry: expected SMAP, got ", 0