test GDT?

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

Re:test GDT?

Post 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
MoneyCat

Re:test GDT?

Post 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!
Post Reply