aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-07-31 14:31:14 +0200
committerHimbeer <himbeer@disroot.org>2024-07-31 14:31:14 +0200
commit15449d6daaead05841e2df47240616d1e4fe842f (patch)
tree812c836bed8f39a43cb732020b6c1fe077c9d6ba
parent5e530b1783fae0c24a0d8998c88670d6ab835897 (diff)
root: Add end syscall
-rw-r--r--src/root.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/root.zig b/src/root.zig
index 0fd09ad..2c56957 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -60,3 +60,7 @@ pub fn launch(bytes: []align(@alignOf(std.elf.Elf64_Ehdr)) const u8) !usize {
if (result.error_code != 0) return SyscallError.Kernel;
return result.value;
}
+
+pub fn end() noreturn {
+ ecall(100003, .{});
+}