working on reading elf from initrd, and getting it launched with the new scheduler
This commit is contained in:
@@ -44,8 +44,16 @@ ISR_ERRCODE 14 # Page Fault (Has Error Code!)
|
||||
.extern send_eoi_master # drivers/pic/pic.c
|
||||
isr32:
|
||||
cli
|
||||
|
||||
pushal
|
||||
|
||||
movw %ds, %ax
|
||||
pushl %eax
|
||||
|
||||
movw $0x10, %ax # Load Kernel Data Segment descriptor
|
||||
movw %ax, %ds
|
||||
movw %ax, %es
|
||||
movw %ax, %fs
|
||||
movw %ax, %gs
|
||||
|
||||
pushl %esp
|
||||
call switch_context
|
||||
@@ -53,6 +61,12 @@ isr32:
|
||||
|
||||
call send_eoi_master
|
||||
|
||||
popl %eax
|
||||
movw %ax, %ds
|
||||
movw %ax, %es
|
||||
movw %ax, %fs
|
||||
movw %ax, %gs
|
||||
|
||||
popal
|
||||
sti
|
||||
iret
|
||||
|
||||
Reference in New Issue
Block a user