]> git.dujemihanovic.xyz Git - nameless-os.git/blobdiff - boot/x86/stage3/unreal.s
Compile stage3 in ELF format
[nameless-os.git] / boot / x86 / stage3 / unreal.s
index cdd361bbdd85ccf6ca83f2039d52494fc9362cda..1fbe1f909cf0953f26037dcb57df79362d7ad31a 100644 (file)
@@ -1,5 +1,8 @@
 ; Routine for enabling unreal mode, which allows using 32-bit offsets in real mode
 
+bits 16
+section .text
+
 enable_unreal:
        cli
        push eax
@@ -25,6 +28,8 @@ enable_unreal:
        sti
        ret
 
+section .rodata
+
 ; GDT with 1 flat data segment descriptor
 gdt_info:
        dw gdt_end-gdt_start-1