Cleaning up interrupts.s and adding missing IRQs

This commit is contained in:
Justin C. Miller
2018-09-06 09:34:34 -07:00
parent 585abe9a18
commit f146a96298
6 changed files with 258 additions and 148 deletions

19
src/kernel/loader.s Normal file
View 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