summaryrefslogtreecommitdiff
path: root/src/stem/task/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stem/task/syscall.c')
-rw-r--r--src/stem/task/syscall.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/stem/task/syscall.c b/src/stem/task/syscall.c
index 6964b34..0878b30 100644
--- a/src/stem/task/syscall.c
+++ b/src/stem/task/syscall.c
@@ -6,13 +6,15 @@
#define CALL2(name, scname) static void scname(struct registers* r) { \
r->eax = name(r->ebx, r->ecx); }
+CALL0(thread_exit, thread_exit_sc);
CALL0(tasking_switch, schedule_sc);
+CALL1(process_exit, process_exit_sc);
CALL1(monitor_write, printk_sc);
int_callback syscalls[] = {
- 0, //Syscall 0 will be thread_exit
+ thread_exit_sc,
schedule_sc,
0, //Syscall 2 will be thread_sleep
- 0, //Syscall 3 will be process_exit
+ process_exit_sc,
printk_sc,
0 };