The Next Stage (C Kernel)

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
pskyboy

The Next Stage (C Kernel)

Post by pskyboy »

Hey Guys

After Much playing about and little succes i have been trying to get a Kernel written in c to be loaded from my boot loader. I followed the guide http://osdev.neopages.net/tutorials/basickernel.php on BoNaFide OsDev and had no luck. The biggest problem was getting the stub on to the front of the C Binary file. When ever i tried to link the 2 together it said that the object file i produced for the stub was an invalid format and i compiled it as aout as stated.

Anyway how exactly would i go about jumping to teh C image since im in protected mode i can't just load it into memory, jump to protected mode then jump to the area of memory i loaded into can i ?

Cheers
Peter
frank

Re:The Next Stage (C Kernel)

Post by frank »

I loaded it in realmode (using int 0x13, bx = memory place :)), set up pmode and jumped to the addres...
jmp dword codesel:0x1000
Post Reply