Jumping to 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
beyondsociety

Jumping to C kernel

Post by beyondsociety »

I have created a bootsector that loads a bootstrap and I want the bootstrap to load my C kernel.

I have thought of two way to do this and I was wondering which is the best way to go?

1. Have the bootstrap load a third file which in turn loads the C kernel. My main problem is how do I compile these files together. Do I assemble the boot files and then compile and link the C kernel with the third file?

2. Have the bootstrap load the C kernel. My main problem is how do I jump to my C kernel. Also how would I assemble, compile and link my files.

By the way, Im using NASM, GCC, and LD.

Thanks for the help in advance!
jrfritz

Re:Jumping to C kernel

Post by jrfritz »

A bootsector loading the C kernel.
Post Reply