mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-15 07:00:42 +02:00
The vast majoirty of syscalls don't need anything in thread or frame. So lets save an indirection for all those syscalls. Most of the syscalls which do need Thread (or CTX via Thread are in Thread.cpp or Memory.cpp These have all been modifiy to fetch Thread from Frame
22 lines
595 B
C++
22 lines
595 B
C++
#include "Tests/LinuxSyscalls/Syscalls.h"
|
|
#include "Tests/LinuxSyscalls/x64/Syscalls.h"
|
|
#include "Tests/LinuxSyscalls/x32/Syscalls.h"
|
|
|
|
#include <stdint.h>
|
|
#include <sys/epoll.h>
|
|
|
|
namespace FEX::HLE {
|
|
void RegisterEpoll() {
|
|
|
|
REGISTER_SYSCALL_IMPL(epoll_create, [](FEXCore::Core::CpuStateFrame *Frame, int size) -> uint64_t {
|
|
uint64_t Result = epoll_create(size);
|
|
SYSCALL_ERRNO();
|
|
});
|
|
|
|
REGISTER_SYSCALL_IMPL(epoll_create1, [](FEXCore::Core::CpuStateFrame *Frame, int flags) -> uint64_t {
|
|
uint64_t Result = epoll_create1(flags);
|
|
SYSCALL_ERRNO();
|
|
});
|
|
}
|
|
}
|