[USER] System calls

This commit is contained in:
thomas committed 2017-03-27 23:09:09 +02:00
1 parent 63b3c3f2c0
commit a7d2b24a79
9 files changed
+166 -2

No files matched your search

+9
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