summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm/ioperm.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-08-23 19:19:35 +0000
committerMike Frysinger <vapier@gentoo.org>2006-08-23 19:19:35 +0000
commiteec38304692556bedde517d299cc051d2d96fc01 (patch)
tree729e838a6d4e13dc0a7379bc9fafe85f9f13f5f8 /libc/sysdeps/linux/arm/ioperm.c
parent37685d2e686412d00bc9dfb47c1f093dda0b3e3c (diff)
fixes from psm: use __asm__/__volatile__
Diffstat (limited to 'libc/sysdeps/linux/arm/ioperm.c')
-rw-r--r--libc/sysdeps/linux/arm/ioperm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/arm/ioperm.c b/libc/sysdeps/linux/arm/ioperm.c
index a0a4e7d1d..1ae2297cb 100644
--- a/libc/sysdeps/linux/arm/ioperm.c
+++ b/libc/sysdeps/linux/arm/ioperm.c
@@ -222,40 +222,40 @@ libc_hidden_def(ioperm)
void
outb(unsigned char b, unsigned long int port)
{
- *((volatile unsigned char *)(IO_ADDR (port))) = b;
+ *((__volatile__ unsigned char *)(IO_ADDR (port))) = b;
}
void
outw(unsigned short b, unsigned long int port)
{
- *((volatile unsigned short *)(IO_ADDR (port))) = b;
+ *((__volatile__ unsigned short *)(IO_ADDR (port))) = b;
}
void
outl(unsigned long b, unsigned long int port)
{
- *((volatile unsigned long *)(IO_ADDR (port))) = b;
+ *((__volatile__ unsigned long *)(IO_ADDR (port))) = b;
}
unsigned char
inb (unsigned long int port)
{
- return *((volatile unsigned char *)(IO_ADDR (port)));
+ return *((__volatile__ unsigned char *)(IO_ADDR (port)));
}
unsigned short int
inw(unsigned long int port)
{
- return *((volatile unsigned short *)(IO_ADDR (port)));
+ return *((__volatile__ unsigned short *)(IO_ADDR (port)));
}
unsigned long int
inl(unsigned long int port)
{
- return *((volatile unsigned long *)(IO_ADDR (port)));
+ return *((__volatile__ unsigned long *)(IO_ADDR (port)));
}