summaryrefslogtreecommitdiff
path: root/src/stem/task/syscall.c
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2010-02-06 20:51:56 +0100
committerAlexis211 <alexis211@gmail.com>2010-02-06 20:51:56 +0100
commit6a52d123672b7a00af6e22b4c138205be2042a94 (patch)
treecd9b0a13490159369a66c850850596fd4b418139 /src/stem/task/syscall.c
parent3558f18daf50281ee1cd68cca96cd967dbac04ba (diff)
downloadTCE-6a52d123672b7a00af6e22b4c138205be2042a94.tar.gz
TCE-6a52d123672b7a00af6e22b4c138205be2042a94.zip
Reorganisation
Diffstat (limited to 'src/stem/task/syscall.c')
-rw-r--r--src/stem/task/syscall.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/stem/task/syscall.c b/src/stem/task/syscall.c
deleted file mode 100644
index 5aab011..0000000
--- a/src/stem/task/syscall.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "syscall.h"
-
-#define CALL0(name, scname) static void scname(struct registers* r) { r->eax = name(); }
-#define CALL1(name, scname) static void scname(struct registers* r) { \
- r->eax = name(r->ebx); }
-#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(thread_sleep, thread_sleep_sc);
-CALL1(process_exit, process_exit_sc);
-CALL1(monitor_write, printk_sc);
-
-int_callback syscalls[] = {
- thread_exit_sc,
- schedule_sc,
- thread_sleep_sc,
- process_exit_sc,
- printk_sc,
- 0 };