summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
Diffstat (limited to 'src/library')
-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);
}