Skip to content

Commit

Permalink
Merge pull request #4098 from Sonicadvance1/linux_v6.11_syscalls
Browse files Browse the repository at this point in the history
LinuxEmulation: Update syscalls for v6.11
  • Loading branch information
lioncash authored Oct 4, 2024
2 parents c036868 + eeff198 commit aaa8eef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ tags: LinuxSyscalls|syscalls-arm64
$end_info$
*/
#pragma once
#include <cstdint>

namespace FEX::HLE::Arm64 {
///< Enum containing all Arm64 linux syscalls for the host kernel
Expand Down Expand Up @@ -476,5 +475,6 @@ enum Syscalls_Arm64 {
SYSCALL_Arm64_epoll_ctl_old = ~0,
SYSCALL_Arm64_epoll_wait_old = ~0,
SYSCALL_Arm64_newfstatat = ~0,
SYSCALL_Arm64_uretprobe = ~0,
};
} // namespace FEX::HLE::Arm64
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ namespace FEX::HLE::x64 {
LogMan::Msg::DFmt("Using deprecated/removed syscall: " #name); \
return -ENOSYS; \
});

#define REGISTER_SYSCALL_NOT_IMPL_SAFE_X64(name) \
REGISTER_SYSCALL_IMPL_X64(name, [](FEXCore::Core::CpuStateFrame* Frame) -> uint64_t { return -ENOSYS; });

#define REGISTER_SYSCALL_NO_PERM_X64(name) \
REGISTER_SYSCALL_IMPL_X64(name, [](FEXCore::Core::CpuStateFrame* Frame) -> uint64_t { return -EPERM; });

Expand All @@ -34,5 +38,6 @@ void RegisterNotImplemented(FEX::HLE::SyscallHandler* Handler) {
REGISTER_SYSCALL_NOT_IMPL_X64(epoll_ctl_old);
REGISTER_SYSCALL_NOT_IMPL_X64(epoll_wait_old);
REGISTER_SYSCALL_NO_PERM_X64(kexec_file_load);
REGISTER_SYSCALL_NOT_IMPL_SAFE_X64(uretprobe);
}
} // namespace FEX::HLE::x64
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ enum Syscalls_x64 {
SYSCALL_x64_statx = 332,
SYSCALL_x64_io_pgetevents = 333,
SYSCALL_x64_rseq = 334,
SYSCALL_x64_uretprobe = 335,
SYSCALL_x64_pidfd_send_signal = 424,
SYSCALL_x64_io_uring_setup = 425,
SYSCALL_x64_io_uring_enter = 426,
Expand Down

0 comments on commit aaa8eef

Please sign in to comment.