From 7b0d88b2dff9b635d9ff69f6d51b6832c1ca4c40 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sat, 18 Aug 2018 13:23:53 +0200 Subject: cleaning up syscalls and playing with new pipes --- asm/int_syscall_handler.asm | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) (limited to 'asm/int_syscall_handler.asm') diff --git a/asm/int_syscall_handler.asm b/asm/int_syscall_handler.asm index d928519..952faae 100644 --- a/asm/int_syscall_handler.asm +++ b/asm/int_syscall_handler.asm @@ -11,15 +11,12 @@ global int_syscall_handler [extern syscall_execve] [extern syscall_open] [extern syscall_close] -[extern syscall_fstat] [extern syscall_isatty] [extern syscall_lseek] [extern syscall_sbrk] [extern syscall_stat] -[extern syscall_lstat] [extern syscall_fork] -[extern syscall_has_data_waiting] -[extern syscall_tune] +[extern syscall_poll] [extern syscall_gettimeofday] [extern syscall_unhandled] @@ -62,9 +59,6 @@ je call_wait cmp eax, 66 je call_close - cmp eax, 67 - je call_fstat - cmp eax, 68 je call_isatty @@ -80,14 +74,14 @@ je call_wait cmp eax, 74 je call_stat + cmp eax, 67 + je call_stat + cmp eax, 79 - je call_lstat + je call_stat cmp eax, 80 - je call_has_data - - cmp eax, 81 - je call_tune + je call_poll push eax jmp call_unhandled @@ -186,10 +180,6 @@ call_stat: call syscall_stat jmp done -call_lstat: - call syscall_lstat - jmp done - call_write: call syscall_write jmp done @@ -206,10 +196,6 @@ call_close: call syscall_close jmp done -call_fstat: - call syscall_fstat - jmp done - call_isatty: call syscall_isatty jmp done @@ -222,12 +208,8 @@ call_sbrk: call syscall_sbrk jmp done -call_has_data: - call syscall_has_data_waiting - jmp done - -call_tune: - call syscall_tune +call_poll: + call syscall_poll jmp done call_unhandled: -- cgit v1.2.3