compiled newlib, need to hook up the system calls
This commit is contained in:
@@ -14,7 +14,7 @@ isr\num:
|
||||
jmp isr_common_stub
|
||||
.endm
|
||||
|
||||
.extern common_interrupt_handler
|
||||
.extern common_interrupt_handler # interrupts.c
|
||||
isr_common_stub:
|
||||
pushal
|
||||
|
||||
@@ -40,18 +40,20 @@ ISR_ERRCODE 14 # Page Fault (Has Error Code!)
|
||||
|
||||
// This is a special case so we need to handle it for task switching
|
||||
.global isr32
|
||||
.extern switch_context # scheduler.c
|
||||
.extern send_eoi_master # drivers/pic/pic.c
|
||||
isr32:
|
||||
cli
|
||||
|
||||
pushal
|
||||
|
||||
|
||||
pushl %esp
|
||||
call schedule_next_task
|
||||
call switch_context
|
||||
movl %eax, %esp
|
||||
|
||||
call send_eoi_master
|
||||
|
||||
popal
|
||||
|
||||
sti
|
||||
iret
|
||||
|
||||
|
||||
Reference in New Issue
Block a user