How to start loading kernel in memory

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.
Locked
VishalPawale
Posts: 10
Joined: Mon Aug 15, 2011 1:33 am
Location: Pune,India

How to start loading kernel in memory

Post 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:
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: How to start loading kernel in memory

Post 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:
Locked