indications are that we can use mfence, lfence, sfence on x86_64, we will need to test and confirm this, but this should fix the build on 64 bit linux gcc at least. need testers to confirm this.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3998 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e5eba308ab
commit
680ef8d169
|
@ -85,7 +85,7 @@
|
||||||
# define PaUtil_FullMemoryBarrier() asm volatile("sync":::"memory")
|
# define PaUtil_FullMemoryBarrier() asm volatile("sync":::"memory")
|
||||||
# define PaUtil_ReadMemoryBarrier() asm volatile("sync":::"memory")
|
# define PaUtil_ReadMemoryBarrier() asm volatile("sync":::"memory")
|
||||||
# define PaUtil_WriteMemoryBarrier() asm volatile("sync":::"memory")
|
# define PaUtil_WriteMemoryBarrier() asm volatile("sync":::"memory")
|
||||||
# elif defined( __i386__ ) || defined( __i486__ ) || defined( __i586__ ) || defined( __i686__ )
|
# elif defined( __i386__ ) || defined( __i486__ ) || defined( __i586__ ) || defined( __i686__ ) || defined(__x86_64__)
|
||||||
# define PaUtil_FullMemoryBarrier() asm volatile("mfence":::"memory")
|
# define PaUtil_FullMemoryBarrier() asm volatile("mfence":::"memory")
|
||||||
# define PaUtil_ReadMemoryBarrier() asm volatile("lfence":::"memory")
|
# define PaUtil_ReadMemoryBarrier() asm volatile("lfence":::"memory")
|
||||||
# define PaUtil_WriteMemoryBarrier() asm volatile("sfence":::"memory")
|
# define PaUtil_WriteMemoryBarrier() asm volatile("sfence":::"memory")
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
# define PaUtil_FullMemoryBarrier() asm volatile("sync":::"memory")
|
# define PaUtil_FullMemoryBarrier() asm volatile("sync":::"memory")
|
||||||
# define PaUtil_ReadMemoryBarrier() asm volatile("sync":::"memory")
|
# define PaUtil_ReadMemoryBarrier() asm volatile("sync":::"memory")
|
||||||
# define PaUtil_WriteMemoryBarrier() asm volatile("sync":::"memory")
|
# define PaUtil_WriteMemoryBarrier() asm volatile("sync":::"memory")
|
||||||
# elif defined( __i386__ ) || defined( __i486__ ) || defined( __i586__ ) || defined( __i686__ )
|
# elif defined( __i386__ ) || defined( __i486__ ) || defined( __i586__ ) || defined( __i686__ ) || defined(__x86_64__)
|
||||||
# define PaUtil_FullMemoryBarrier() asm volatile("mfence":::"memory")
|
# define PaUtil_FullMemoryBarrier() asm volatile("mfence":::"memory")
|
||||||
# define PaUtil_ReadMemoryBarrier() asm volatile("lfence":::"memory")
|
# define PaUtil_ReadMemoryBarrier() asm volatile("lfence":::"memory")
|
||||||
# define PaUtil_WriteMemoryBarrier() asm volatile("sfence":::"memory")
|
# define PaUtil_WriteMemoryBarrier() asm volatile("sfence":::"memory")
|
||||||
|
|
Loading…
Reference in New Issue