summaryrefslogtreecommitdiffstats
path: root/vidix
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-10-16 20:17:56 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-10-16 20:17:56 +0000
commit26b29f4f2d4284fb81647a00b81530f280881303 (patch)
tree2ab0a30362d6cdf878efc039236befa860e28ae3 /vidix
parent2195547220674940ef20e9ea38bb3610541d04b3 (diff)
downloadmpv-26b29f4f2d4284fb81647a00b81530f280881303.tar.bz2
mpv-26b29f4f2d4284fb81647a00b81530f280881303.tar.xz
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27791 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix')
-rw-r--r--vidix/nvidia_vid.c2
-rw-r--r--vidix/s3_regs.h2
-rw-r--r--vidix/sysdep/AsmMacros_powerpc.h2
-rw-r--r--vidix/sysdep/AsmMacros_sparc.h12
-rw-r--r--vidix/sysdep/AsmMacros_x86.h16
5 files changed, 17 insertions, 17 deletions
diff --git a/vidix/nvidia_vid.c b/vidix/nvidia_vid.c
index a045b397fe..767a358f37 100644
--- a/vidix/nvidia_vid.c
+++ b/vidix/nvidia_vid.c
@@ -372,7 +372,7 @@ static int nv_probe(int verbose, int force){
* PCI-Memory IO access macros.
*/
-#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); })
diff --git a/vidix/s3_regs.h b/vidix/s3_regs.h
index 0add1bea54..4fd0e427cf 100644
--- a/vidix/s3_regs.h
+++ b/vidix/s3_regs.h
@@ -196,7 +196,7 @@ do { \
#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); })
diff --git a/vidix/sysdep/AsmMacros_powerpc.h b/vidix/sysdep/AsmMacros_powerpc.h
index 7120446afe..0ae2fd57d2 100644
--- a/vidix/sysdep/AsmMacros_powerpc.h
+++ b/vidix/sysdep/AsmMacros_powerpc.h
@@ -68,7 +68,7 @@ extern unsigned char *ioBase;
static __inline__ volatile void eieio()
{
- __asm__ __volatile__ ("eieio");
+ __asm__ volatile ("eieio");
}
static __inline__ void outb(short port, unsigned char value)
diff --git a/vidix/sysdep/AsmMacros_sparc.h b/vidix/sysdep/AsmMacros_sparc.h
index 2358adea6f..8ffdde26e1 100644
--- a/vidix/sysdep/AsmMacros_sparc.h
+++ b/vidix/sysdep/AsmMacros_sparc.h
@@ -68,37 +68,37 @@
static __inline__ void outb(unsigned long port, char val)
{
- __asm__ __volatile__("stba %0, [%1] %2" : : "r" (val), "r" (port), "i" (ASI_PL));
+ __asm__ volatile("stba %0, [%1] %2" : : "r" (val), "r" (port), "i" (ASI_PL));
}
static __inline__ void outw(unsigned long port, char val)
{
- __asm__ __volatile__("stha %0, [%1] %2" : : "r" (val), "r" (port), "i" (ASI_PL));
+ __asm__ volatile("stha %0, [%1] %2" : : "r" (val), "r" (port), "i" (ASI_PL));
}
static __inline__ void outl(unsigned long port, char val)
{
- __asm__ __volatile__("sta %0, [%1] %2" : : "r" (val), "r" (port), "i" (ASI_PL));
+ __asm__ volatile("sta %0, [%1] %2" : : "r" (val), "r" (port), "i" (ASI_PL));
}
static __inline__ unsigned int inb(unsigned long port)
{
unsigned char ret;
- __asm__ __volatile__("lduba [%1] %2, %0" : "=r" (ret) : "r" (port), "i" (ASI_PL));
+ __asm__ volatile("lduba [%1] %2, %0" : "=r" (ret) : "r" (port), "i" (ASI_PL));
return ret;
}
static __inline__ unsigned int inw(unsigned long port)
{
unsigned char ret;
- __asm__ __volatile__("lduha [%1] %2, %0" : "=r" (ret) : "r" (port), "i" (ASI_PL));
+ __asm__ volatile("lduha [%1] %2, %0" : "=r" (ret) : "r" (port), "i" (ASI_PL));
return ret;
}
static __inline__ unsigned int inl(unsigned long port)
{
unsigned char ret;
- __asm__ __volatile__("lda [%1] %2, %0" : "=r" (ret) : "r" (port), "i" (ASI_PL));
+ __asm__ volatile("lda [%1] %2, %0" : "=r" (ret) : "r" (port), "i" (ASI_PL));
return ret;
}
diff --git a/vidix/sysdep/AsmMacros_x86.h b/vidix/sysdep/AsmMacros_x86.h
index c0b1afc105..6bebeaa505 100644
--- a/vidix/sysdep/AsmMacros_x86.h
+++ b/vidix/sysdep/AsmMacros_x86.h
@@ -171,7 +171,7 @@ static __inline__ void outb(short port,char val)
}
else
#endif
- __asm__ __volatile__("outb %0,%1" : :"a" (val), "d" (port));
+ __asm__ volatile("outb %0,%1" : :"a" (val), "d" (port));
return;
}
@@ -199,7 +199,7 @@ static __inline__ void outw(short port,short val)
}
else
#endif
- __asm__ __volatile__("outw %0,%1" : :"a" (val), "d" (port));
+ __asm__ volatile("outw %0,%1" : :"a" (val), "d" (port));
return;
}
@@ -227,7 +227,7 @@ static __inline__ void outl(short port,unsigned int val)
}
else
#endif
- __asm__ __volatile__("outl %0,%1" : :"a" (val), "d" (port));
+ __asm__ volatile("outl %0,%1" : :"a" (val), "d" (port));
return;
}
@@ -255,7 +255,7 @@ static __inline__ unsigned int inb(short port)
}
else
#endif
- __asm__ __volatile__("inb %1,%0" :
+ __asm__ volatile("inb %1,%0" :
"=a" (ret) :
"d" (port));
return ret;
@@ -285,7 +285,7 @@ static __inline__ unsigned int inw(short port)
}
else
#endif
- __asm__ __volatile__("inw %1,%0" :
+ __asm__ volatile("inw %1,%0" :
"=a" (ret) :
"d" (port));
return ret;
@@ -315,7 +315,7 @@ static __inline__ unsigned int inl(short port)
}
else
#endif
- __asm__ __volatile__("inl %1,%0" :
+ __asm__ volatile("inl %1,%0" :
"=a" (ret) :
"d" (port));
return ret;
@@ -327,7 +327,7 @@ static __inline__ void intr_disable()
if (svgahelper_initialized == 1)
return;
#endif
- __asm__ __volatile__("cli");
+ __asm__ volatile("cli");
}
static __inline__ void intr_enable()
@@ -336,7 +336,7 @@ static __inline__ void intr_enable()
if (svgahelper_initialized == 1)
return;
#endif
- __asm__ __volatile__("sti");
+ __asm__ volatile("sti");
}
#endif /* MPLAYER_ASMMACROS_X86_H */