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

@ -12,7 +12,7 @@
#include "pit.h"
#include "proc/proc.h"
#include "syscall/syscall.h"
#include "errors.h"
#include "hdrs/errors.h"
void hal_intr_disable(void) {
asm volatile("cli");
@ -165,7 +165,7 @@ void hal_syscalldispatch(IntrStackFrame *frame) {
int32_t ret = fn(frame->regs.rdi, frame->regs.rsi, frame->regs.rdx,
frame->regs.r10, frame->regs.r8, frame->regs.r9);
if (sysnum == SYS_QUITPROC) {
if (ret == E_DOSCHEDULING) {
proc_sched((void *)frame);
}
frame->regs.rax = *(uint64_t *)&ret;