summaryrefslogtreecommitdiff
path: root/src/library/start.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/start.c')
-rw-r--r--src/library/start.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/library/start.c b/src/library/start.c
new file mode 100644
index 0000000..9324ccb
--- /dev/null
+++ b/src/library/start.c
@@ -0,0 +1,6 @@
+extern int main();
+
+void start() {
+ int ret = main();
+ asm volatile("int $64" : : "a"(3), "b"(ret));
+}