mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
Simplify task switches
No longer using the rsp from the entry to the kernel, but instead switching rsp at task-switching time in assembly. This currently breaks fork()
This commit is contained in:
@@ -9,7 +9,6 @@ isr_handler_prelude:
|
||||
mov rdi, rsp
|
||||
mov rsi, rsp
|
||||
call isr_handler
|
||||
mov rsp, rax
|
||||
jmp isr_handler_return
|
||||
|
||||
extern irq_handler
|
||||
@@ -21,7 +20,6 @@ irq_handler_prelude:
|
||||
mov rdi, rsp
|
||||
mov rsi, rsp
|
||||
call irq_handler
|
||||
mov rsp, rax
|
||||
; fall through to isr_handler_return
|
||||
|
||||
global isr_handler_return
|
||||
|
||||
Reference in New Issue
Block a user