glide2x, h3, linhwc.c: update P6FENCE macros from glide3
This commit is contained in:
@@ -72,7 +72,15 @@ hwcCheckMemSize(hwcBoardInfo *bInfo, FxU32 xres, FxU32 yres, FxU32 nColBuffers,
|
||||
#endif
|
||||
|
||||
static FxU32 __attribute_used fenceVar;
|
||||
#if defined(__GNUC__) && defined(__ia64__)
|
||||
# define P6FENCE asm volatile ("mf.a" ::: "memory");
|
||||
#elif defined(__GNUC__) && defined(__alpha__)
|
||||
# define P6FENCE asm volatile("mb" ::: "memory");
|
||||
#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
|
||||
# define P6FENCE asm("xchg %%eax, %0" : : "m" (fenceVar) : "eax");
|
||||
#else
|
||||
# error "No P6FENCE asm for this architecture"
|
||||
#endif
|
||||
|
||||
#define MAXFIFOSIZE 0x40000
|
||||
#define FIFOPAD 0x0000
|
||||
|
||||
Reference in New Issue
Block a user