24 lines
1.1 KiB
Diff
24 lines
1.1 KiB
Diff
|
--- a/Source/Tests/LinuxSyscalls/Syscalls/Memory.cpp
|
||
|
+++ b/Source/Tests/LinuxSyscalls/Syscalls/Memory.cpp
|
||
|
@@ -46,16 +46,20 @@
|
||
|
SYSCALL_ERRNO();
|
||
|
});
|
||
|
|
||
|
+#if !defined(__ANDROID__) || __ANDROID_API__ >= 30
|
||
|
REGISTER_SYSCALL_IMPL_PASS(mlock2, [](FEXCore::Core::CpuStateFrame *Frame, const void *addr, size_t len, int flags) -> uint64_t {
|
||
|
uint64_t Result = ::mlock2(addr, len, flags);
|
||
|
SYSCALL_ERRNO();
|
||
|
});
|
||
|
+#endif
|
||
|
|
||
|
+#ifndef __ANDROID__
|
||
|
REGISTER_SYSCALL_IMPL_PASS(remap_file_pages, [](FEXCore::Core::CpuStateFrame *Frame, void *addr, size_t size, int prot, size_t pgoff, int flags) -> uint64_t {
|
||
|
// This syscall is deprecated, not sure when it will end up being removed
|
||
|
uint64_t Result = ::remap_file_pages(addr, size, prot, pgoff, flags);
|
||
|
SYSCALL_ERRNO();
|
||
|
});
|
||
|
+#endif
|
||
|
|
||
|
REGISTER_SYSCALL_IMPL_PASS(mbind, [](FEXCore::Core::CpuStateFrame *Frame, void *addr, unsigned long len, int mode, const unsigned long *nodemask, unsigned long maxnode, unsigned flags) -> uint64_t {
|
||
|
uint64_t Result = ::syscall(SYSCALL_DEF(mbind), addr, len, mode, nodemask, maxnode, flags);
|