Fix IDTR limit for lidt to respect Intel manuals
This commit is contained in:
parent
5fdea0dabd
commit
b67e75e376
@ -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);
|
||||
|
Reference in New Issue
Block a user