aboutsummaryrefslogtreecommitdiff
path: root/examples/hello_world/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hello_world/src')
-rw-r--r--examples/hello_world/src/main.zig11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/hello_world/src/main.zig b/examples/hello_world/src/main.zig
new file mode 100644
index 0000000..2a9eb86
--- /dev/null
+++ b/examples/hello_world/src/main.zig
@@ -0,0 +1,11 @@
+// SPDX-FileCopyrightText: 2024 Himbeer <himbeer@disroot.org>
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+export fn _start() void {
+ main();
+}
+
+pub fn main() void {
+ asm volatile ("ecall");
+}