diff options
Diffstat (limited to 'asm')
| -rw-r--r-- | asm/int_syscall_handler.asm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/asm/int_syscall_handler.asm b/asm/int_syscall_handler.asm index 23b9f84..a2236fe 100644 --- a/asm/int_syscall_handler.asm +++ b/asm/int_syscall_handler.asm @@ -1,5 +1,6 @@ global int_syscall_handler +[extern syscall_exit] [extern syscall_write] [extern syscall_read] [extern syscall_readdir] @@ -20,6 +21,9 @@ int_syscall_handler: push ecx push edx + cmp eax, 60 + je call_exit + cmp eax, 61 je call_write @@ -104,6 +108,10 @@ call_sbrk: call syscall_sbrk jmp done +call_exit: + call syscall_exit + jmp done + ;;; THIS CALLS NEED REENABLE INTERRUPTS BEFORE calling workers call_read: |
