summaryrefslogtreecommitdiff
path: root/src/usertestelf.c
diff options
context:
space:
mode:
authordzwdz2022-07-18 14:01:21 +0200
committerdzwdz2022-07-18 14:01:21 +0200
commitd43c1af88b1834a00f8b5f09aa0af1a5e4f5b4aa (patch)
tree7743cd9eb761dee12711cf719ab846228a888dbd /src/usertestelf.c
parent620bd6af8e005057e04c8a2891c7537ec3556345 (diff)
user: a super primitive ELF loader
holy shit. this was simpler than i expected it to be
Diffstat (limited to 'src/usertestelf.c')
-rw-r--r--src/usertestelf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usertestelf.c b/src/usertestelf.c
new file mode 100644
index 0000000..19f0096
--- /dev/null
+++ b/src/usertestelf.c
@@ -0,0 +1,6 @@
+#include <user/lib/syscall.c>
+
+int main(void) {
+ _syscall_write(1, "Hello!", 6, 0);
+ _syscall_exit(0);
+}