GDT, IDT
Re: GDT, IDT
How do you choose where to load them in memory? Is there something in EAX/AX that you do before you call lgdt/lidt?
K.J.
K.J.
Re: GDT, IDT
i do following:
grub loads my kernel at 0x100000 (1M) and above,
the gdt and idt tables are created in code section of kernel, i.e. above 1M.
when i set idt, remap interrupt and enable them triple fault occurs (gdt was setted far far before that and may be work?).
the bochs log contains this statement (before first exception) (not exactly):
..... incorrect .. gate .. non-executable segment..
why? i try to locate gdt, idt at 0x0000 - 0x..... lets see.
grub loads my kernel at 0x100000 (1M) and above,
the gdt and idt tables are created in code section of kernel, i.e. above 1M.
when i set idt, remap interrupt and enable them triple fault occurs (gdt was setted far far before that and may be work?).
the bochs log contains this statement (before first exception) (not exactly):
..... incorrect .. gate .. non-executable segment..
why? i try to locate gdt, idt at 0x0000 - 0x..... lets see.