kernel: refactor syscall dispatch system
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user