idt: put sti out of idt_set so bochs doesn't crash
This commit is contained in:
@@ -10,7 +10,6 @@ void idt_set() {
|
|||||||
idtr.base = (uint32) &idt;
|
idtr.base = (uint32) &idt;
|
||||||
idtr.limit = sizeof(idt) * sizeof(idt_entry_t) - 1;
|
idtr.limit = sizeof(idt) * sizeof(idt_entry_t) - 1;
|
||||||
__asm__ __volatile__("lidt %0" : : "m" (idtr));
|
__asm__ __volatile__("lidt %0" : : "m" (idtr));
|
||||||
__asm__ __volatile__("sti"); //TODO: fixme, make this fucking stinking sti work
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ void kmain()
|
|||||||
pit_init(100);
|
pit_init(100);
|
||||||
|
|
||||||
apply_pic_masks();
|
apply_pic_masks();
|
||||||
|
__asm__ __volatile__ ("sti");
|
||||||
printf("Kernel init sequence completed\n");
|
printf("Kernel init sequence completed\n");
|
||||||
|
|
||||||
char yooo[256] = "heheh";
|
char yooo[256] = "heheh";
|
||||||
|
|||||||
Reference in New Issue
Block a user