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