still fighting an issue
This commit is contained in:
@@ -41,11 +41,12 @@ 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
|
||||
.extern send_eoi_master # drivers/pic/pic.S
|
||||
isr32:
|
||||
cli
|
||||
pushal
|
||||
|
||||
xorl %eax, %eax
|
||||
movw %ds, %ax
|
||||
pushl %eax
|
||||
|
||||
@@ -54,13 +55,13 @@ isr32:
|
||||
movw %ax, %es
|
||||
movw %ax, %fs
|
||||
movw %ax, %gs
|
||||
|
||||
call send_eoi_master
|
||||
|
||||
pushl %esp
|
||||
call switch_context
|
||||
movl %eax, %esp
|
||||
|
||||
call send_eoi_master
|
||||
|
||||
popl %eax
|
||||
movw %ax, %ds
|
||||
movw %ax, %es
|
||||
|
||||
Reference in New Issue
Block a user