clean: use toris(); instead of asm(sti)
This commit is contained in:
@ -4,6 +4,8 @@
|
|||||||
#include "apic.h"
|
#include "apic.h"
|
||||||
#include "gdt.h"
|
#include "gdt.h"
|
||||||
#include "idt.h"
|
#include "idt.h"
|
||||||
|
#include "interrupts.h"
|
||||||
|
#include "sys/io.h"
|
||||||
#include "kprintf.h"
|
#include "kprintf.h"
|
||||||
|
|
||||||
#define PIC1 0x20 /* IO base address for master PIC */
|
#define PIC1 0x20 /* IO base address for master PIC */
|
||||||
@ -44,5 +46,5 @@ void init_idt(void)
|
|||||||
for (uint8_t j = 0; j < 16; j++)
|
for (uint8_t j = 0; j < 16; j++)
|
||||||
idt_set_descriptor(i + j, irq_stub_table[j], 0x8E);
|
idt_set_descriptor(i + j, irq_stub_table[j], 0x8E);
|
||||||
load_idt(&idtr);
|
load_idt(&idtr);
|
||||||
__asm__ volatile("sti");
|
// toris();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user