[resolved] OSDev difficulties

Page 1 of 1

0 Replies - 468 Views - Last Post: 06 September 2009 - 09:32 PM

#1 chris772   User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 190
  • Joined: 13-March 09

[resolved] OSDev difficulties

Posted 06 September 2009 - 09:32 PM

EDIT: Resolved. I made the mistake of declaring my function prototypes and describing them first, and forgetting to write them before moving on. All of my code was working fine there was just no code to be executed since it was not written yet.

I've been away from my usual programming environment working on a homebrew operating system. This time my problem isn't necessarily about the code it is about testing the code. My development platform is Ubuntu Linux by the way.

I am using GRUB as a boot loader, have written a few hundred lines of code into a kernel (written in C), and everything has been going well. My USB floppy drive won't be arriving until some time next week, so I have been forced to do all of my testing with QEmulator. The problem though is that I was instructed by a previous tutorial to enter the following into the GRUB command line to boot.

kernel 200+18
boot



That was working fine until I scrapped by old kernel and rewrote it. Now, when I enter the above, instead of printing "Hello World!" it prints nothing. The kernel's endless loop is working fine but no other code is being executed no matter where it is placed. Any ideas?

p.s. I can post all of the code if needed. I followed a kernel tutorial at osdever.net.

This post has been edited by chris772: 07 September 2009 - 12:44 PM


Is This A Good Question/Topic? 0
  • +

Page 1 of 1