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 fbc060e..2a47863 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -74,3 +74,8 @@ pub fn processId() u16 {
const result = ecall(100005, .{});
return result.value;
}
+
+pub fn threadId() usize {
+ const result = ecall(100006, .{});
+ return result.value;
+}