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
The Next Stage (C Kernel)
Re:The Next Stage (C Kernel)
I loaded it in realmode (using int 0x13, bx = memory place ), set up pmode and jumped to the addres...
jmp dword codesel:0x1000
jmp dword codesel:0x1000