My OS Freezes on Boot, I Don't See Anything Wrong...
Posted: Sun May 17, 2009 12:26 pm
OK, here's a background. I'm new to OS development, and have been using the tutorial here to aid me. I also have a GRUB floppy disk, and a virtual machine to test my OS on.
When I boot off of the GRUB floppy, I get dumped to the prompt, and type this:
When this is typed, the text Starting up... appears under the command line, and the cursor jumps to the top-left hand corner of the screen, then freezes. I've tried many things to get it fixed, including trying to fix some warnings raised while compiling, moving the source of the screen functions into a header file, etc but nothing has worked.
The kernel that is called by GRUB calls the main() function inside main.c, which then calls various functions inside scrn.c. The prototypes for all of these functions, preceded by 'extern', are in system.h (created by me, not anything to do with the compiler). I have attempted to make this work to no avail. Is there something that I'm overlooking, or something wrong? In the tutorial linked to above, I am at the stage at the end of the section on working with VGA display.
When I boot off of the GRUB floppy, I get dumped to the prompt, and type this:
Code: Select all
grub> root (fd0)
grub> kernel /boot/kernel.bin
, bss=0x3010
grub> boot
The kernel that is called by GRUB calls the main() function inside main.c, which then calls various functions inside scrn.c. The prototypes for all of these functions, preceded by 'extern', are in system.h (created by me, not anything to do with the compiler). I have attempted to make this work to no avail. Is there something that I'm overlooking, or something wrong? In the tutorial linked to above, I am at the stage at the end of the section on working with VGA display.