fixed memory barrier bug in IDT initialization -- kernel still crashing when interrupts enabled but i think the memory management initialization is correct
git-svn-id: svn://anubis/hos/trunk@102 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
parent
4b688a3ce0
commit
f51426f73f
@ -106,5 +106,5 @@ void interrupts_bootstrap()
|
|||||||
idt[49] = MAKE_IDT_DESCRIPTOR(KERNEL_CODE_SEGMENT, isr_49, 0);
|
idt[49] = MAKE_IDT_DESCRIPTOR(KERNEL_CODE_SEGMENT, isr_49, 0);
|
||||||
idtr.base = idt_phys;
|
idtr.base = idt_phys;
|
||||||
idtr.limit = 49 * sizeof(idt[0]) - 1;
|
idtr.limit = 49 * sizeof(idt[0]) - 1;
|
||||||
__asm__ __volatile__ ("lidt (idtr)");
|
__asm__ __volatile__ ("lidt (idtr)" : : : "memory");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user