diff options
Diffstat (limited to 'c/src/lib/libbsp/i386/shared/comm/i386_io.h')
-rw-r--r-- | c/src/lib/libbsp/i386/shared/comm/i386_io.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/i386/shared/comm/i386_io.h b/c/src/lib/libbsp/i386/shared/comm/i386_io.h index cd81c66096..496afe9676 100644 --- a/c/src/lib/libbsp/i386/shared/comm/i386_io.h +++ b/c/src/lib/libbsp/i386/shared/comm/i386_io.h @@ -19,7 +19,7 @@ ({ \ register int _inb_result; \ \ - asm volatile ("xorl %%eax,%%eax; inb %%dx,%%al" : \ + __asm__ volatile ("xorl %%eax,%%eax; inb %%dx,%%al" : \ "=a" (_inb_result) : "d" (port)); \ _inb_result; \ }) @@ -28,16 +28,16 @@ ({ \ register int _inbw_result; \ \ - asm volatile ("xorl %%eax,%%eax; inw %%dx,%%ax" : \ + __asm__ volatile ("xorl %%eax,%%eax; inw %%dx,%%ax" : \ "=a" (_inbw_result) : "d" (port)); \ _inbw_result; \ }) #define rtems_outb(port, data) \ - asm volatile ("outb %%al,%%dx" : : "a" (data), "d" (port)) + __asm__ volatile ("outb %%al,%%dx" : : "a" (data), "d" (port)) #define rtems_outw(port, data) \ - asm volatile ("outw %%ax,%%dx" : : "a" (data), "d" (port)) + __asm__ volatile ("outw %%ax,%%dx" : : "a" (data), "d" (port)) #define outp(port, val) rtems_outb(port,val) #define inp(port) rtems_inb(port) |