summaryrefslogtreecommitdiff
path: root/src/library/start.c
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2010-02-09 12:44:06 +0100
committerAlexis211 <alexis211@gmail.com>2010-02-09 12:44:06 +0100
commit4886faa3dce410543eda2139221e03959e73a747 (patch)
treee74cedd7b8a89005c802ddd3ce38f7ab5b8c4fb4 /src/library/start.c
parent6a52d123672b7a00af6e22b4c138205be2042a94 (diff)
downloadTCE-4886faa3dce410543eda2139221e03959e73a747.tar.gz
TCE-4886faa3dce410543eda2139221e03959e73a747.zip
Added user mode support and monitor_writeDec
Diffstat (limited to 'src/library/start.c')
-rw-r--r--src/library/start.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library/start.c b/src/library/start.c
index 9324ccb..8f83a23 100644
--- a/src/library/start.c
+++ b/src/library/start.c
@@ -1,6 +1,8 @@
+#include "grapes/syscall.h"
+
extern int main();
void start() {
int ret = main();
- asm volatile("int $64" : : "a"(3), "b"(ret));
+ process_exit(ret);
}