Page 2 of 2

Re:test GDT?

Posted: Thu Aug 21, 2003 2:14 pm
by Therx
After loading your new GDT you should do:-

Code: Select all

mov ax, KERN_DATA
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
jmp KERN_CODE:new_gdt
new_gdt:
Otherwise the address (offset) loaded into the IDT may be from a different base to the new GDT (as shown from your info about the GRUB GDT)

Hope I'm of use

Pete

Re:test GDT?

Posted: Thu Aug 21, 2003 2:36 pm
by MoneyCat

Code: Select all

jmp KERN_CODE:new_gdt
new_gdt:
Wow, this fixed it!! My interrupts are firing correctly now! One last thing: my new gdt seems to be loaded at 0x102000 would it be a good idea to relocated it to say 0x500 ?


Thanks for all the help!