Load a C-kernel entry?

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

Moderator: Moderators

Load a C-kernel entry?

Postby 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
kosmisk
 
Posts: 3
Joined: Thu Dec 30, 2010 9:04 pm

Re: Load a C-kernel entry?

Postby Andyhhp » Mon Jan 24, 2011 9:15 pm

That should work. Why do you ask?

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


Return to Beginners

Who is online

Users browsing this forum: No registered users and 2 guests

cron