Page 1 of 1

How to start loading kernel in memory

Posted: Wed Dec 14, 2011 3:47 am
by VishalPawale
Hi Guys,

I have done with bootloader and now I want to move forward.
So, I have written a simple routine in C which just which just prints a message .
But problem is that how to link this C source file with assembly file, do I need to organize my C file at some particular location and then to make jump to that location from asm file ?

Excuse me for my English..... :wink:

Re: How to start loading kernel in memory

Posted: Wed Dec 14, 2011 4:28 am
by bluemoon
VishalPawale wrote:Hi Guys,

I have done with bootloader and now I want to move forward.
So, I have written a simple routine in C which just which just prints a message .
But problem is that how to link this C source file with assembly file, do I need to organize my C file at some particular location and then to make jump to that location from asm file ?

Excuse me for my English..... :wink:
So, you have problem loading file, execute it, or linking the kernel image?
Wait, you said you've done with bootloader, are you sure?

Anyway, I try to answer:
1. Loading file - check the tutorial on wiki Tutorials
2. Execute it - check the tutorial on wiki Tutorials
3. Linking issue - check the tutorial on wiki Tutorials

Is that helpful? :mrgreen: