Linux: Add some comments claiming shmctl and msqctl is incorrect on x86

These aren't correctly handled, so they will get garbage data for now
This commit is contained in:
Ryan Houdek committed 2021-08-30 02:25:48 -07:00
1 parent d2636f63f2
commit 76877e08bc
2 files changed
+2

No files matched your search

@@ -32,6 +32,7 @@ namespace FEX::HLE {
SYSCALL_ERRNO();
});
// XXX: msqid_ds is definitely not correct for 32-bit
REGISTER_SYSCALL_IMPL(msgctl, [](FEXCore::Core::CpuStateFrame *Frame, int msqid, int cmd, struct msqid_ds *buf) -> uint64_t {
uint64_t Result = ::msgctl(msqid, cmd, buf);
SYSCALL_ERRNO();
@@ -19,6 +19,7 @@ namespace FEX::HLE {
SYSCALL_ERRNO();
});
// XXX: shmid_ds is definitely not correct for 32-bit
REGISTER_SYSCALL_IMPL(shmctl, [](FEXCore::Core::CpuStateFrame *Frame, int shmid, int cmd, struct shmid_ds *buf) -> uint64_t {
uint64_t Result = ::shmctl(shmid, cmd, buf);
SYSCALL_ERRNO();