1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

atomic.hpp: fixup (rsp addressing)

This commit is contained in:
Nekotekina 2020-12-08 08:51:27 +03:00
parent 2602be426f
commit 062c605eb1

View File

@ -52,7 +52,7 @@ FORCE_INLINE void atomic_fence_seq_cst()
_InterlockedOr(static_cast<long*>(_AddressOfReturnAddress()), 0); _InterlockedOr(static_cast<long*>(_AddressOfReturnAddress()), 0);
_ReadWriteBarrier(); _ReadWriteBarrier();
#else #else
__asm__ volatile ("lock orl $0, 0(%%esp);" ::: "cc", "memory"); __asm__ volatile ("lock orl $0, 0(%%rsp);" ::: "cc", "memory");
#endif #endif
} }