Page 1 of 1

Load a C-kernel entry?

Posted: Mon Jan 24, 2011 12:12 pm
by kosmisk
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

Re: Load a C-kernel entry?

Posted: Mon Jan 24, 2011 9:15 pm
by Andyhhp
That should work. Why do you ask?

~Andrew