aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-07-31 14:36:12 +0200
committerHimbeer <himbeer@disroot.org>2024-07-31 14:36:12 +0200
commit649273cb941c914c33feb9376c2bcf88ea204bd7 (patch)
treeef0d4d398f78bc24cc41b66f34f37db08bf56a0a /src
parent435dfb5450d9ab58baff877c6a4eef360fff31ab (diff)
root: Add threadId syscall
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;
+}