OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 12:56 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: My OS Freezes on Boot, I Don't See Anything Wrong...
PostPosted: Sun May 17, 2009 12:26 pm 
Offline

Joined: Sun May 17, 2009 10:56 am
Posts: 2
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:
Code:
grub> root (fd0)
grub> kernel /boot/kernel.bin
, bss=0x3010
grub> boot

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.


Top
 Profile  
 
 Post subject: Re: My OS Freezes on Boot, I Don't See Anything Wrong...
PostPosted: Mon May 18, 2009 8:00 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
Ask smart questions

What do you want it to do? How are you trying to do that? Did you even ask a question?

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
 Post subject: Re: My OS Freezes on Boot, I Don't See Anything Wrong...
PostPosted: Tue May 19, 2009 6:56 am 
Offline

Joined: Sun May 17, 2009 10:56 am
Posts: 2
OK, sorry. I admit that I mucked up by only skimming that file when I should have read it properly. I've decided to follow another tutorial in light of the problem I'm having with this one; so all should be fine. Sorry again for being stupid and wasting time.


Top
 Profile  
 
 Post subject: Re: My OS Freezes on Boot, I Don't See Anything Wrong...
PostPosted: Wed May 20, 2009 4:27 am 
Offline
Member
Member

Joined: Wed Oct 31, 2007 9:09 am
Posts: 1385
SmartRoss wrote:
Sorry again for being stupid and wasting time.


The fact that you actually realize this, makes you potentially a much better OS developer than many beginners on this board :).


JAL


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: 8infy, Google [Bot] and 50 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group