FEAT: SYSTEM_CMD_PARALLEL_RUN

This commit is contained in:
boreddevnl
2026-04-02 20:21:06 +02:00
parent beb2c724ff
commit 3169ec51cb
4 changed files with 72 additions and 1 deletions

View File

@@ -255,3 +255,7 @@ int sys_get_os_info(os_info_t *info) {
return (int)syscall5(SYS_SYSTEM, SYSTEM_CMD_GET_OS_INFO, (uint64_t)info, 0, 0, 0);
}
void sys_parallel_run(void (*fn)(void*), void **args, int count) {
syscall5(SYS_SYSTEM, SYSTEM_CMD_PARALLEL_RUN, (uint64_t)fn, (uint64_t)args, (uint64_t)count, 0);
}

View File

@@ -76,6 +76,7 @@
#define SYSTEM_CMD_TCP_RECV_NB 42
#define SYSTEM_CMD_YIELD 43
#define SYSTEM_CMD_GET_OS_INFO 49
#define SYSTEM_CMD_PARALLEL_RUN 50
// Internal assembly entry into Ring 0
extern uint64_t syscall0(uint64_t sys_num);