Use DRM_MEMORYBARRIER() macro instead of mb().
parent
371f0a4d41
commit
06e09842df
|
@ -96,11 +96,7 @@ static int xgi_pcie_lut_init(struct xgi_info * info)
|
||||||
lut[i] = info->dev->sg->busaddr[i];
|
lut[i] = info->dev->sg->busaddr[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__i386__) || defined(__x86_64__)
|
DRM_MEMORYBARRIER();
|
||||||
asm volatile ("wbinvd":::"memory");
|
|
||||||
#else
|
|
||||||
mb();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Set GART in SFB */
|
/* Set GART in SFB */
|
||||||
temp = DRM_READ8(info->mmio_map, 0xB00C);
|
temp = DRM_READ8(info->mmio_map, 0xB00C);
|
||||||
|
|
Loading…
Reference in New Issue