Consistently use __volatile as the rest of this file.

This commit is contained in:
Jung-uk Kim 2011-04-14 16:19:41 +00:00
parent f5ac47f44c
commit 4854ae249c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220629
2 changed files with 11 additions and 11 deletions

View File

@ -176,7 +176,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);
}
@ -185,7 +185,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);
}
@ -227,20 +227,20 @@ 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);
}
static __inline void
outb(u_int port, u_char data)
{
__asm volatile("outb %0, %w1" : : "a" (data), "Nd" (port));
__asm __volatile("outb %0, %w1" : : "a" (data), "Nd" (port));
}
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
@ -270,7 +270,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

View File

@ -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