Bootloader crashes when switching from 16-bit real mode to 32-bit protected mode
Bootloader crashes when switching from 16-bit real mode to 32-bit protected mode
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.
- Attachments
-
- boot.asm
- (709 Bytes) Downloaded 98 times
-
Octocontrabass
- Member

- Posts: 6247
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Bootloader crashes when switching from 16-bit real mode to 32-bit protected mode
You need to load your kernel before you can jump to your kernel.