dose anyone know where i can get information on loading my kernel form my bootsector?
Jason
Loading the kernel
RE:Loading the kernel
It really depends on how *you* want to boot your OS.
If you're just dealing with a floppy disk for now you have the choice between using a filesystem(most likely fat12 or using no file system). Either way what you probably have to do is use BIOS int service routines(look in the links for Ralf Brown's INT list) to read from the disk. If your kernel is just a file in a fat12 directory then you'll also have to have some filesystem code in your boot sector. This is where the size limits of bootsectors starts to be fun!-)
I did a fat12 boot sector that you can take a look at if you want: http://www.osdev.org/drywell/snapshot/s ... 12boot.asm
Some people like to load there kernel above the first meg of memory(needed if you have a large kernel). To do this you have to start worrying about PMODE but it starts getting really hard to fit all the needed code into a single boot sector. The common solution is to have a multistage boot loader. Your boot sector loads a more advanced boot loader instead of the actual kernel and that in turn loads the kernel(sometime a piece at a time) into high memory by moving in and out of PMODE.
There are options if you don't like to play with bootloaders. GRUB is an already created boot loader that you can get that will load all kernels that conform to a certain format.
-Chase
If you're just dealing with a floppy disk for now you have the choice between using a filesystem(most likely fat12 or using no file system). Either way what you probably have to do is use BIOS int service routines(look in the links for Ralf Brown's INT list) to read from the disk. If your kernel is just a file in a fat12 directory then you'll also have to have some filesystem code in your boot sector. This is where the size limits of bootsectors starts to be fun!-)
I did a fat12 boot sector that you can take a look at if you want: http://www.osdev.org/drywell/snapshot/s ... 12boot.asm
Some people like to load there kernel above the first meg of memory(needed if you have a large kernel). To do this you have to start worrying about PMODE but it starts getting really hard to fit all the needed code into a single boot sector. The common solution is to have a multistage boot loader. Your boot sector loads a more advanced boot loader instead of the actual kernel and that in turn loads the kernel(sometime a piece at a time) into high memory by moving in and out of PMODE.
There are options if you don't like to play with bootloaders. GRUB is an already created boot loader that you can get that will load all kernels that conform to a certain format.
-Chase