adding clock system call

This commit is contained in:
Daniel Samson
2026-07-11 03:43:33 +01:00
parent 2ab0d129a2
commit e499f500c3
4 changed files with 41 additions and 0 deletions
+1
View File
@@ -49,6 +49,7 @@ pub const SystemCall = enum(u64) {
msi_bind = 20, // msi_bind(device_id, endpoint) -> address (rax), data (rdx): a per-device MSI vector for a claimed device
io_read = 21, // io_read(device_id, resource_index, offset, width) -> value: read a port in a claimed device's io_port resource
io_write = 22, // io_write(device_id, resource_index, offset, width, value) -> 0: write a port in a claimed device's io_port resource
clock = 23, // clock() -> nanoseconds since boot: a monotonic time source (for timeouts/delays)
_,
};