As I left, my os's bootsector loads all kernel to 9000h. Now, I change my mind
and want to seperate 32bit code and 16bit code. Ill use nasm for both 16-32 bit
asm parts, TCC for 16bit code, GCC for 32bit code. My boot sector will load 16bit
and 32bit binary files to their locations and jump 16bit part.This part will do
all the 16 bit stuff, like some hardware check, some initializations, some bios
issues, pci issues, fdc, hdd etc. Then jump to 32bit kernel and its job will over.
And now for the memory places for os. Those are all the reserved memory places as
I remember and find.
0000
interrupts.I mean this is a jump table and where is the jumped code resides?)
XXXX:0000 - a000:0000 -> Extended bios data area (I dont know where it starts)
A000:0h - FFFF:F Video Memory, External ROM code, rom related memory..
These are all I know (If another place exists, please warn).
I use fat12 as file system. So I need some place to load fat, directory table, my 16bit code
part and 32bit code part. I decided to place:
DirectoryTable ........................ 6000h - 7c00h ( 1c00h ) (224*32)
Boot sector ........................... 7C00h - 7E00h ( 200h )
FAT ................................... 7E00h - 8E00h ( 1200h ) (9 * 512)
But cant decide place for kernel parts. I think 10000h is a traditional place to load kernel.
Where do you - most people - load their kernels (and why - if there is a reason)? What
should be the factors when deciding the kernel place? Is there any other memory area under 1mb
should not be changed? Is my place for fat and directory table >good< or where is the
traditional place for them?
Any answer/comment appreciated. Thanks from now...
