Move to new processctl syscall, share common kernel and ulib headers

This commit is contained in:
2025-09-05 15:44:57 +02:00
parent ca92a0e6a8
commit 708c53c64d
20 changed files with 98 additions and 27 deletions

View File

@ -1,9 +1,13 @@
#include <stdint.h>
#include <system/system.h>
#include <syscall/syscall.h>
#include <syscall.h>
void sys_debugprint(const char *string) {
syscall(SYS_DEBUGPRINT, (uint64_t)string, 0, 0, 0, 0, 0);
}
int32_t sys_processctl(uint64_t pid, uint64_t cmd, void *extra) {
return syscall(SYS_PROCESSCTL, pid, cmd, (uint64_t)extra, 0, 0, 0);
}