* Use haiku provided arch defines Axel pointed out

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42413 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexander von Gluck IV
2011-07-11 20:06:39 +00:00
parent b8d5c5cec2
commit ff2898e24a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -330,7 +330,7 @@ void Radeon_SendIndirectBuffer( accelerator_info *ai,
// (this code is a bit of a overkill - currently, only some WinChip/Cyrix
// CPU's support out-of-order writes, but we are prepared)
// TODO : Other Architectures? PowerPC?
#if defined(__x86__) || defined(__x86_64__)
#ifdef __INTEL__
__asm__ __volatile__ ("lock; addl $0,0(%%esp)": : :"memory");
#endif
// make sure the motherboard chipset has flushed its write buffer by
@@ -234,9 +234,9 @@ static status_t initGATT( GART_info *gart )
// back to real live - some chipsets have write buffers that
// proove all previous assumptions wrong
// (don't know whether this really helps though)
#if defined(__x86__) || defined(__x86_64__)
#if defined(__INTEL__)
asm volatile ( "wbinvd" ::: "memory" );
#elif defined(__powerpc__)
#elif defined(__POWERPC__)
// TODO : icbi on PowerPC to flush instruction cache?
#endif
return B_OK;