X-Git-Url: http://git.dujemihanovic.xyz/%7B%7B?a=blobdiff_plain;f=boot%2Fx86%2Fstage3%2Funreal.s;h=1fbe1f909cf0953f26037dcb57df79362d7ad31a;hb=320a0c820a129a39cc6a8a383ea4e2770f3ee50b;hp=cdd361bbdd85ccf6ca83f2039d52494fc9362cda;hpb=1d5cadb08919cd8d40b8303896319687540d9e0d;p=nameless-os.git diff --git a/boot/x86/stage3/unreal.s b/boot/x86/stage3/unreal.s index cdd361b..1fbe1f9 100644 --- a/boot/x86/stage3/unreal.s +++ b/boot/x86/stage3/unreal.s @@ -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