feat: add SYS_GETCAPS syscall to retrieve process capabilities

This commit is contained in:
daniel committed 2026-09-12 11:13:13 +02:00
1 parent e641500b40
commit f95bce01d1
8 files changed
+26 -22

No files matched your search

+3
View File
@@ -510,6 +510,9 @@ namespace montauk::abi {
// holds no device capability to spend on it.
if (!UserMemory::Writable<BatteryInfo>(frame->arg1)) return -1;
return Sys_BatteryInfo((BatteryInfo*)frame->arg1);
case SYS_GETCAPS:
if (!UserMemory::Writable<SpawnCapabilities>(frame->arg1)) return -1;
return Sys_GetCaps((SpawnCapabilities*)frame->arg1);
case SYS_THREAD_SPAWN:
return Sys_ThreadSpawn(frame->arg1, frame->arg2, frame->arg3);
case SYS_THREAD_EXIT: