diff options
author | Alexis211 <alexis211@gmail.com> | 2010-02-09 12:44:06 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2010-02-09 12:44:06 +0100 |
commit | 4886faa3dce410543eda2139221e03959e73a747 (patch) | |
tree | e74cedd7b8a89005c802ddd3ce38f7ab5b8c4fb4 /src/library | |
parent | 6a52d123672b7a00af6e22b4c138205be2042a94 (diff) | |
download | TCE-4886faa3dce410543eda2139221e03959e73a747.tar.gz TCE-4886faa3dce410543eda2139221e03959e73a747.zip |
Added user mode support and monitor_writeDec
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/start.c | 4 |
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); } |