summaryrefslogtreecommitdiff
path: root/documentation/kernel-interfaces
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-07-31 13:36:53 -0400
committerBenji Dial <benji@benjidial.net>2024-07-31 13:36:53 -0400
commitb1cf9e5dfbc8967bd7cb2a22ec1e5e521f4e0e6e (patch)
tree00837891f9b9bf232e540a6f9b3e16f2438865c3 /documentation/kernel-interfaces
parent86b343f17175ef3e1fad2197636f75770466aa7c (diff)
downloadhilbert-os-b1cf9e5dfbc8967bd7cb2a22ec1e5e521f4e0e6e.tar.gz
add clock
Diffstat (limited to 'documentation/kernel-interfaces')
-rw-r--r--documentation/kernel-interfaces/syscalls.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/documentation/kernel-interfaces/syscalls.txt b/documentation/kernel-interfaces/syscalls.txt
index 933ad34..f7dddba 100644
--- a/documentation/kernel-interfaces/syscalls.txt
+++ b/documentation/kernel-interfaces/syscalls.txt
@@ -4,6 +4,8 @@ rcx, rflags, r8-r11 are clobbered.
interrupts (including the timer!) are disabled during system calls.
+a "mibisecond" is a 1024th of a second
+
stream result:
0 = success
1 = bad handle
@@ -203,3 +205,11 @@ set thread name:
rax in: 24
rdi in: pointer to thread name
rsi in: thread name length
+
+sleep:
+ rax in: 25
+ rdi in: "mibiseconds" to sleep for
+
+get time:
+ rax in: 26
+ rax out: "mibiseconds" since january 1st 2000