Page 1 of 1

Bootloader crashes when switching from 16-bit real mode to 32-bit protected mode

Posted: Mon Feb 09, 2026 3:57 pm
by Bence
I am writing a my OS, bootloader. My 16-bit bootloader runs, but when I switch to 32-bit protected mode and jump to my kernel at 0x00100000, it crashes or returns to BIOS. I attached the assembly code. I'm using NASM and QEMU.

Re: Bootloader crashes when switching from 16-bit real mode to 32-bit protected mode

Posted: Mon Feb 09, 2026 4:12 pm
by Octocontrabass
You need to load your kernel before you can jump to your kernel.