Tracing the kernel code and debugging
Posted: Mon Nov 16, 2009 8:57 pm
Hi,
I'm new to assembly language, I love this OS. It's really
nice ! I'm using Windows Vista and QEMU.
QUESTIONS
(1)
Could someone please tell me the first kernal function that is executed
inside Kernel.asm at boot? I'm booting from floppy, It looks like
boot_fat12.asm is loading the kernel, but I can't find the first function
inside kernel.asm that is executed.
(2)
Also, I'm looking for the best way to debug kernel.asm
I've found information on QEMU and GDB. Is that the best way ? Or is there a better way under Vista?
Would it be better if I set up a Linux box for debugging?
I want to step through the code in a debugger so I can understand the execution sequence.
(3)
What is the name of the function and asm file that displayes the first blue screen
where you setup the screen resolution before the OS boots?
Thanks for the help.
-Areal
I'm new to assembly language, I love this OS. It's really
nice ! I'm using Windows Vista and QEMU.
QUESTIONS
(1)
Could someone please tell me the first kernal function that is executed
inside Kernel.asm at boot? I'm booting from floppy, It looks like
boot_fat12.asm is loading the kernel, but I can't find the first function
inside kernel.asm that is executed.
(2)
Also, I'm looking for the best way to debug kernel.asm
I've found information on QEMU and GDB. Is that the best way ? Or is there a better way under Vista?
Would it be better if I set up a Linux box for debugging?
I want to step through the code in a debugger so I can understand the execution sequence.
(3)
What is the name of the function and asm file that displayes the first blue screen
where you setup the screen resolution before the OS boots?
Thanks for the help.
-Areal