summaryrefslogtreecommitdiff
path: root/asm/int_syscall_handler.asm
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2015-05-24 03:32:14 +0200
committerMichal Idziorek <m.i@gmx.at>2015-05-24 03:32:14 +0200
commitfbbbc75200008e2b603e5b7df8cd2e1a5d17483b (patch)
treeeb78fa27e182fd840b02f603cef3a1df97a53249 /asm/int_syscall_handler.asm
parentf5d8d7bee20742a7a101665ebca630ff8e05d77b (diff)
syscalls and terminal functionality for GAMING mode
Diffstat (limited to 'asm/int_syscall_handler.asm')
-rw-r--r--asm/int_syscall_handler.asm13
1 files changed, 13 insertions, 0 deletions
diff --git a/asm/int_syscall_handler.asm b/asm/int_syscall_handler.asm
index 70090f0..619ef84 100644
--- a/asm/int_syscall_handler.asm
+++ b/asm/int_syscall_handler.asm
@@ -18,6 +18,8 @@ global int_syscall_handler
[extern syscall_stat]
[extern syscall_lstat]
[extern syscall_fork]
+[extern syscall_has_data_waiting]
+[extern syscall_tune]
[extern syscall_unhandled]
[bits 32]
@@ -78,6 +80,11 @@ je call_wait
cmp eax, 79
je call_lstat
+ cmp eax, 80
+ je call_has_data
+
+ cmp eax, 81
+ je call_tune
push eax
jmp call_unhandled
@@ -208,6 +215,12 @@ call_sbrk:
call syscall_sbrk
jmp done
+call_has_data:
+ call syscall_has_data_waiting
+ jmp done
+call_tune:
+ call syscall_tune
+ jmp done
call_unhandled:
call syscall_unhandled