From a822afc278e7855dea55bcd0de2e402d5bf43508 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Thu, 20 Nov 2014 23:28:17 +0100 Subject: fixed loading and runnnng progs (clear bss) --- asm/int_syscall_handler.asm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'asm/int_syscall_handler.asm') 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: -- cgit v1.2.3