Page 2 of 2

Re:I cant compile the Kernel :(

Posted: Wed Feb 25, 2004 9:21 am
by srg
bubach wrote: i am using a 16 bit "kernel loader" that lies on the fat12 disc (beeing loaded by my fat12 bootsect) that enters pmode and sets the A20-gate before (loading and) jumping to the kernel.. i think that?s the best way if you want to do it yourself.. otherwise you could use grub.

/ Christoffer
I was trying to do that using Turbo C++ (as a C comp), big mistake!! In trying to create my own startup code I ended up wil all sorts of problems. If you want to create a C Kernel, grub makes life much easier! That's what I do now.

I'm going to modify my old TC++ program into a DOS loader

srg

Re:I cant compile the Kernel :(

Posted: Wed Feb 25, 2004 12:36 pm
by MeshMan
I don't really see any problems if your assembly knowledge is fine. What possible terrible problems are you talking about?

BTW, thanks all for helping, it seems i can compile my kernel in C and load it perfectly! Big thankyou again!

Re:I cant compile the Kernel :(

Posted: Thu Feb 26, 2004 2:37 am
by Pype.Clicker
MeshMan wrote: Or, just get the boot-strap to go into P-MODE and then load the 32-bit kernel?
That wouldn't be very wise as loading requires you to access the medium and you'll have no BIOS to support you with that task once you'll be in pmode. The options would be to provide your own pmode floppy disk driver in your stage 2 loader or to provide a VM86 box in that loader ... both doesn't sound practical, so i suggest you defer the realmode/pmode switch up to the moment where you'll have all the things you need in memory ...