Ekaanth,
Compiler ur C code into Binary.
U can use gcc/ld which would be a very
powerful tool to do all such work.
Ur Entry Point in the "C" code should
know about certain things. For exp, it
might need to asssume that PM and paging
are already setup. Ur memory map during bootup
may be made available as a ".h" file. Continue
writing "C" code from there. for exp, memoruy initializn,
configuring Kernel Segments, kmem_allocations, Vm manager
etc.. In the Loader routine, do the loading of kernel ("C"
part), then initialize some basic GDT, minimal page-tables
etc.. and the make LongJump into where u have loaded
ur kernel. that would do
Do not rejoice that ur code works.
it might be a special case of an error :-(