| Index: src/platform-linux.cc
|
| ===================================================================
|
| --- src/platform-linux.cc (revision 6894)
|
| +++ src/platform-linux.cc (working copy)
|
| @@ -189,21 +189,10 @@
|
| }
|
|
|
|
|
| -#ifdef V8_TARGET_ARCH_ARM
|
| -// 0xffff0fa0 is the hard coded address of a function provided by
|
| -// the kernel which implements a memory barrier. On older
|
| -// ARM architecture revisions (pre-v6) this may be implemented using
|
| -// a syscall. This address is stable, and in active use (hard coded)
|
| -// by at least glibc-2.7 and the Android C library.
|
| -typedef void (*LinuxKernelMemoryBarrierFunc)(void);
|
| -LinuxKernelMemoryBarrierFunc pLinuxKernelMemoryBarrier __attribute__((weak)) =
|
| - (LinuxKernelMemoryBarrierFunc) 0xffff0fa0;
|
| -#endif
|
| -
|
| void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) {
|
| #if defined(V8_TARGET_ARCH_ARM) && defined(__arm__)
|
| // Only use on ARM hardware.
|
| - pLinuxKernelMemoryBarrier();
|
| + MemoryBarrier();
|
| #else
|
| __asm__ __volatile__("" : : : "memory");
|
| // An x86 store acts as a release barrier.
|
|
|