summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2015-05-25 22:53:09 +0200
committerMichal Idziorek <m.i@gmx.at>2015-05-25 22:53:09 +0200
commit8a665b53229ce8f563b88bb33aa1ab3db4c1c096 (patch)
treee813008300446b1925dc91e85713732fbd932bdd /asm
parent1252a288665a7d07dcf5f0e468dc67b9440132d0 (diff)
finally managed to port some simple ncurses test applications!
Diffstat (limited to 'asm')
-rw-r--r--asm/int_syscall_handler.asm10
1 files changed, 9 insertions, 1 deletions
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