[USER] System calls

This commit is contained in:
2016-12-06 15:50:35 +01:00
parent 63b3c3f2c0
commit a7d2b24a79
9 changed files with 166 additions and 2 deletions

View File

@@ -64,6 +64,15 @@ isr_return:
pop r13
pop r14
pop r15
// Jump to syscall_return if we're in a syscall
push rax
mov rax, [rsp + 8]
cmp rax, INT_SYSCALL
.extern syscall_return
jz syscall_return
pop rax
// Pop error code and fault number
add rsp, 16
iretq