Added syscalls stub

This commit is contained in:
Alex
2022-10-12 04:34:37 +03:00
parent 127476ac64
commit a2da69d777
7 changed files with 94 additions and 1 deletions

15
Core/SystemCalls.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include <syscalls.hpp>
#include <debug.h>
extern "C" uint64_t SystemCallsHandler(SyscallsRegs *regs)
{
#if defined(__amd64__)
fixme("System call %ld", regs->rax);
#elif defined(__i386__)
fixme("System call %ld", regs->eax);
#elif defined(__aarch64__)
fixme("System call");
#endif
return 0;
}