From b1cf9e5dfbc8967bd7cb2a22ec1e5e521f4e0e6e Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Wed, 31 Jul 2024 13:36:53 -0400 Subject: add clock --- documentation/kernel-interfaces/syscalls.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'documentation/kernel-interfaces') 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 -- cgit v1.2.3