Kernel now compiles on x32

This commit is contained in:
Alex
2022-11-14 14:54:18 +02:00
parent 042bce48a0
commit cabdc5263e
27 changed files with 803 additions and 19 deletions

View File

@ -2391,6 +2391,7 @@ static void *LinuxSyscallsTable[] = {
uint64_t HandleLinuxSyscalls(SyscallsFrame *Frame)
{
#if defined(__amd64__)
if (Frame->rax > sizeof(LinuxSyscallsTable))
{
fixme("Syscall %lld not implemented", Frame->rax);
@ -2406,4 +2407,7 @@ uint64_t HandleLinuxSyscalls(SyscallsFrame *Frame)
uint64_t ret = call(Frame->rdi, Frame->rsi, Frame->rdx, Frame->r10, Frame->r8, Frame->r9);
Frame->rax = ret;
return ret;
#elif defined(__i386__)
#elif defined(__aarch64__)
#endif
}