aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/main.c
diff options
context:
space:
mode:
authorMarvin Borner2019-12-01 15:47:35 +0100
committerMarvin Borner2019-12-01 15:47:35 +0100
commite9407b091b34d93014b89660601da62f13df37aa (patch)
treed60f14946e96d7e1bd72657522682032f0a99e84 /src/userspace/main.c
parent50f949d994c33ab23d63bdb9e8a438560ab0b4c4 (diff)
Semi-working C-based userspace syscalls
Diffstat (limited to 'src/userspace/main.c')
-rw-r--r--src/userspace/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/userspace/main.c b/src/userspace/main.c
new file mode 100644
index 0000000..22bb42a
--- /dev/null
+++ b/src/userspace/main.c
@@ -0,0 +1,10 @@
+#include <stddef.h>
+
+extern void syscall();
+
+void user_main()
+{
+ syscall();
+
+ while (1) {};
+} \ No newline at end of file