The Next Stage (C Kernel)
Posted: Sat Sep 07, 2002 9:08 am
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
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