tasking: add simple base for running things in ring 3
This commit is contained in:
@@ -22,6 +22,8 @@ __attribute__((interrupt)) void isr_timer(struct interrupt_frame *frame);
|
||||
void isr_custom();
|
||||
void default_handler();
|
||||
|
||||
extern void sys_exit_handler();
|
||||
|
||||
void isr_install() {
|
||||
idt_set_descriptor(0, (uint32)isr0, 0x8E);
|
||||
idt_set_descriptor(1, (uint32)isr1, 0x8E);
|
||||
@@ -62,6 +64,7 @@ void isr_install() {
|
||||
idt_set_descriptor(0x20, (uint32)isr_timer, 0x8E);
|
||||
idt_set_descriptor(0x21, (uint32)isr_custom, 0x8E);
|
||||
|
||||
idt_set_descriptor(0x80, (uint32)sys_exit_handler, 0xEE);
|
||||
|
||||
idt_set(); // Load with ASM
|
||||
printf("isr_install done\n");
|
||||
|
||||
Reference in New Issue
Block a user