I cant compile the Kernel :(

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.
srg

Re:I cant compile the Kernel :(

Post 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
MeshMan

Re:I cant compile the Kernel :(

Post 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!
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:I cant compile the Kernel :(

Post 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 ...
Post Reply