GDT Entries, Help?
Posted: Fri Feb 06, 2009 9:56 am
By now i am done with second stage bootloader and am ready to load kernel.
BUT i am not sure about GDT entries like:
1. 1 null, 1 ring0 code, 1 ring0 data, 1 ring3 code, 1 ring3 data BUT how many TSS?
2. When i am in Second stage bootloader i need to access BPB of BootSector, is there any mechanism where from i can get this structure without loading bootsector again as it is alredy available in memory? Yes, pointing to memory locations but i need to calculate these values and use hardcore statements like
BPB_BytesPerSector equ 7c00h+oxb
Is there any other way that can be used?
3.Well right now in Second stage bootloader i have switched to protected mode but have declared a common handler for exceptions, how to use proper routines is easy but how to get address of IDT structure declared in Second Stage bootloader, like above
Please, reply me soon?
BUT i am not sure about GDT entries like:
1. 1 null, 1 ring0 code, 1 ring0 data, 1 ring3 code, 1 ring3 data BUT how many TSS?
2. When i am in Second stage bootloader i need to access BPB of BootSector, is there any mechanism where from i can get this structure without loading bootsector again as it is alredy available in memory? Yes, pointing to memory locations but i need to calculate these values and use hardcore statements like
BPB_BytesPerSector equ 7c00h+oxb
Is there any other way that can be used?
3.Well right now in Second stage bootloader i have switched to protected mode but have declared a common handler for exceptions, how to use proper routines is easy but how to get address of IDT structure declared in Second Stage bootloader, like above
Please, reply me soon?