aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/root.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/root.zig b/src/root.zig
index a93492f..fbc060e 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -69,3 +69,8 @@ pub fn terminate(pid: u16, thread: usize) !void {
const result = ecall(100004, .{ pid, thread });
if (result.error_code != 0) return SyscallError.Kernel;
}
+
+pub fn processId() u16 {
+ const result = ecall(100005, .{});
+ return result.value;
+}