diff vidix/s3_regs.h @ 27757:b5a46071062a

Replace all occurrences of '__volatile__' and '__volatile' by plain 'volatile'. We were using an inconsistent mix of the three variants and 'volatile' should be the most correct and portable variant.
author diego
date Thu, 16 Oct 2008 20:17:56 +0000
parents 5b162ba7cee8
children 0f1b5b68af32
line wrap: on
line diff
--- a/vidix/s3_regs.h	Thu Oct 16 19:24:21 2008 +0000
+++ b/vidix/s3_regs.h	Thu Oct 16 20:17:56 2008 +0000
@@ -196,7 +196,7 @@
 #ifndef USE_RMW_CYCLES
 
 /* Can be used to inhibit READ-MODIFY-WRITE cycles. On by default. */
-#define MEM_BARRIER() __asm__ __volatile__ ("" : : : "memory")
+#define MEM_BARRIER() __asm__ volatile ("" : : : "memory")
 
 #undef  VID_WR08
 #define VID_WR08(p,i,val) ({ MEM_BARRIER(); ((uint8_t *)(p))[(i)]=(val); })