summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/cpufunc.h
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2011-04-14 16:19:41 +0000
committerjkim <jkim@FreeBSD.org>2011-04-14 16:19:41 +0000
commit8ada5a0bae76b336930bf137438d4c0b00fd4a04 (patch)
tree3588c5f0d5351a339211b57884811fc8fb922976 /sys/i386/include/cpufunc.h
parent581c70b26c707a2270b61e87a2decaf7a77f97c0 (diff)
downloadFreeBSD-src-8ada5a0bae76b336930bf137438d4c0b00fd4a04.zip
FreeBSD-src-8ada5a0bae76b336930bf137438d4c0b00fd4a04.tar.gz
Consistently use __volatile as the rest of this file.
Diffstat (limited to 'sys/i386/include/cpufunc.h')
-rw-r--r--sys/i386/include/cpufunc.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h
index 5f21cb2..9285499 100644
--- a/sys/i386/include/cpufunc.h
+++ b/sys/i386/include/cpufunc.h
@@ -189,7 +189,7 @@ inb(u_int port)
{
u_char data;
- __asm volatile("inb %w1, %0" : "=a" (data) : "Nd" (port));
+ __asm __volatile("inb %w1, %0" : "=a" (data) : "Nd" (port));
return (data);
}
@@ -198,7 +198,7 @@ inl(u_int port)
{
u_int data;
- __asm volatile("inl %w1, %0" : "=a" (data) : "Nd" (port));
+ __asm __volatile("inl %w1, %0" : "=a" (data) : "Nd" (port));
return (data);
}
@@ -240,7 +240,7 @@ inw(u_int port)
{
u_short data;
- __asm volatile("inw %w1, %0" : "=a" (data) : "Nd" (port));
+ __asm __volatile("inw %w1, %0" : "=a" (data) : "Nd" (port));
return (data);
}
@@ -253,7 +253,7 @@ outb(u_int port, u_char data)
static __inline void
outl(u_int port, u_int data)
{
- __asm volatile("outl %0, %w1" : : "a" (data), "Nd" (port));
+ __asm __volatile("outl %0, %w1" : : "a" (data), "Nd" (port));
}
static __inline void
@@ -283,7 +283,7 @@ outsl(u_int port, const void *addr, size_t count)
static __inline void
outw(u_int port, u_short data)
{
- __asm volatile("outw %0, %w1" : : "a" (data), "Nd" (port));
+ __asm __volatile("outw %0, %w1" : : "a" (data), "Nd" (port));
}
static __inline void
OpenPOWER on IntegriCloud