From 8a665b53229ce8f563b88bb33aa1ab3db4c1c096 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 25 May 2015 22:53:09 +0200 Subject: finally managed to port some simple ncurses test applications! --- asm/int_syscall_handler.asm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'asm') diff --git a/asm/int_syscall_handler.asm b/asm/int_syscall_handler.asm index 619ef84..b50eaf7 100644 --- a/asm/int_syscall_handler.asm +++ b/asm/int_syscall_handler.asm @@ -20,6 +20,7 @@ global int_syscall_handler [extern syscall_fork] [extern syscall_has_data_waiting] [extern syscall_tune] +[extern syscall_gettimeofday] [extern syscall_unhandled] [bits 32] @@ -28,6 +29,7 @@ pid: dd 0x0 int_syscall_handler: + cmp eax, 72 je call_fork @@ -43,7 +45,6 @@ je call_wait push ecx push edx - cmp eax, 61 je call_write @@ -74,6 +75,9 @@ je call_wait cmp eax, 70 je call_sbrk + cmp eax, 71 + je call_timeofday + cmp eax, 74 je call_stat @@ -175,6 +179,10 @@ call_fork: iretd ;Interrupt-Return ;;;; +call_timeofday: + call syscall_gettimeofday + jmp done + call_stat: call syscall_stat jmp done -- cgit v1.2.3