mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
Cleaning up interrupts.s and adding missing IRQs
This commit is contained in:
19
src/kernel/loader.s
Normal file
19
src/kernel/loader.s
Normal file
@@ -0,0 +1,19 @@
|
||||
%include "push_all.inc"
|
||||
|
||||
extern load_process
|
||||
|
||||
global ramdisk_process_loader
|
||||
ramdisk_process_loader:
|
||||
|
||||
; create_process already pushed a cpu_state onto the stack for us, this
|
||||
; acts both as the cpu_state parameter to load_process, and the saved
|
||||
; state for the following iretq
|
||||
mov rdi, rax
|
||||
mov rsi, rbx
|
||||
call load_process
|
||||
|
||||
pop_all_and_segments
|
||||
add rsp, 16 ; because the ISRs add err/num
|
||||
iretq
|
||||
|
||||
|
||||
Reference in New Issue
Block a user