From 4886faa3dce410543eda2139221e03959e73a747 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Tue, 9 Feb 2010 12:44:06 +0100 Subject: Added user mode support and monitor_writeDec --- src/library/start.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/library') 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); } -- cgit v1.2.3