still fighting an issue

This commit is contained in:
2026-07-03 22:25:24 -05:00
parent 48df965268
commit ab5a1ecb6b
5 changed files with 18 additions and 22 deletions

View File

@@ -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