KernelCTL stub syscall

This commit is contained in:
Alex 2022-12-14 13:02:30 +02:00
parent aed2b927f3
commit 40c26f1232
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD
2 changed files with 10 additions and 0 deletions

View File

@ -34,12 +34,20 @@ static uint64_t sys_free_pages(SyscallsFrame *Frame, uint64_t Address, uint64_t
return 0;
}
static uint64_t sys_kernelctl(SyscallsFrame *Frame, uint64_t Command, uint64_t Arg1, uint64_t Arg2, uint64_t Arg3, uint64_t Arg4)
{
fixme("KernelCTL: %lld", Command);
return 0;
}
static void *NativeSyscallsTable[] = {
[_Exit] = (void *)sys_exit,
[_Print] = (void *)sys_print,
[_RequestPages] = (void *)sys_request_pages,
[_FreePages] = (void *)sys_free_pages,
[_KernelCTL] = (void *)sys_kernelctl,
};
uint64_t HandleNativeSyscalls(SyscallsFrame *Frame)

View File

@ -10,6 +10,8 @@ enum NativeSyscalls
_RequestPages,
_FreePages,
_KernelCTL,
};
static inline long syscall0(long syscall)