wrap x86-only asm code in ifdef's to ensure radeon driver compiles on powerpc and other platforms
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42408 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5da2e46394
commit
c59e093db8
@ -234,7 +234,11 @@ 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__)
|
||||
asm volatile ( "wbinvd" ::: "memory" );
|
||||
#elif defined(__powerpc__)
|
||||
// TODO : icbi on PowerPC to flush instruction cache?
|
||||
#endif
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user