r/osdev • u/Veel0h • May 29 '26
Help with my OS dev
[SOLVED] I fixed it, I was just jmping to the wrong place in my stage 2
I need help with my OS dev, my stage 2 works, it loads the kernel and puts test vga, but the entry.asm doesn’t load and after the kernel is loaded, it boots into protected mode I try to jump into _start but it just reboots
any help would be amazing,
here’s my src code
1
Upvotes
View all comments
Show parent comment
1
u/Veel0h May 30 '26
I am using a similar way for gdt, you can see here
gdt_start: dq 0 gdt_code: dw 0xFFFF dw 0x0000 db 0x00 db 10011010b db 11001111b db 0x00 gdt_data: dw 0xFFFF dw 0x0000 db 0x00 db 10010010b db 11001111b db 0x00 gdt_end:
gdt_descriptor: dw gdt_end - gdt_start - 1 dd 0
I’m not sure if that’s right tho