summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-08-18 13:23:53 +0200
committerMiguel <m.i@gmx.at>2018-08-18 13:23:53 +0200
commit7b0d88b2dff9b635d9ff69f6d51b6832c1ca4c40 (patch)
tree22c452e9c7ad586136721e776e0b67b23fb33119 /asm
parent17fd357bad5f6c3362cfdab1d807aa463c69a4e9 (diff)
cleaning up syscalls and playing with new pipes
Diffstat (limited to 'asm')
-rw-r--r--asm/int_syscall_handler.asm34
1 files changed, 8 insertions, 26 deletions
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: