Fix IDTR limit for lidt to respect Intel manuals

This commit is contained in:
Némunaire 2013-02-17 17:46:24 +01:00
parent 5fdea0dabd
commit b67e75e376

View File

@ -86,7 +86,7 @@ t_error architecture_idt_import(void)
{
as_idtr lidt;
lidt.limit = ARCHITECTURE_IDT_SIZE * sizeof (at_idte);
lidt.limit = ARCHITECTURE_IDT_SIZE * sizeof (at_idte) - 1;
lidt.base = (t_paddr) &_idt;
ARCHITECTURE_LIDT(lidt);