kernel: refactor syscall dispatch system

This commit is contained in:
2026-02-08 16:17:11 +00:00
parent c424e8127e
commit 9f7b7bdd2d
6 changed files with 30 additions and 23 deletions

View File

@@ -206,7 +206,7 @@ void irq_dispatch(struct ml_cpu_context *regs)
void syscall_dispatch(struct ml_cpu_context *regs)
{
unsigned int sysid = regs->rax;
virt_addr_t syscall_impl = syscall_get_func(sysid);
virt_addr_t syscall_impl = syscall_get_function(sysid);
if (syscall_impl == 0) {
regs->rax = KERN_UNSUPPORTED;