Load a C-kernel entry?

If you are new to development, plan on spending some time here before visiting the other forums.

Moderator:Moderators

Post Reply
kosmisk
Posts:3
Joined:Thu Dec 30, 2010 9:04 pm
Load a C-kernel entry?

Post by kosmisk » Mon Jan 24, 2011 12:12 pm

Is it possible to make the bootloader load a C-kernel entry?
like this:

Code: Select all

gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -c -o entry.o entry.c

gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -c -o main.o main.c
And then like this:

Code: Select all

ld -Ttext 0x100000 -o KRNL32.EXE entry.o main.o

Andyhhp
Moderator
Posts:387
Joined:Tue Oct 23, 2007 10:05 am
Location:127.0.0.1
Contact:

Re: Load a C-kernel entry?

Post by Andyhhp » Mon Jan 24, 2011 9:15 pm

That should work. Why do you ask?

~Andrew
Image

Post Reply