Skip to content
Discussion options

You must be logged in to vote

it's a triple fault. the bootloader is loading the kernel now, but it's crashing instantly.
check these:

  1. GDT: is it loaded at the correct address?
  2. linker script: does the load address (like 0x100000) match where your code expects to be?
  3. stack: did you set the stack pointer (esp) before calling any C code?

run qemu with -d int,cpu_reset -no-reboot and check the EIP (instruction pointer) in the logs right before it dies to see the exact crash address.

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
15 replies
@ajm19826
Comment options

@syedsafeer
Comment options

@ajm19826
Comment options

@syedsafeer
Comment options

Answer selected by ajm19826
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Programming Help Discussions around programming languages, open source and software development source:ui Discussions created via Community GitHub templates
2 participants