diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-01-15 19:50:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-01-15 19:50:40 +0000 |
commit | cce12d917b9c6261ec24df53b0c3b0a9a1afe247 (patch) | |
tree | d52593cd9ef97090045e1c61b8cd0e23dc1b0a8a /sys/arch/mac68k | |
parent | 99f51f841264d8a8b02dbb59090bfc5bd3ea31a9 (diff) |
__asm__ and __volatile__
Diffstat (limited to 'sys/arch/mac68k')
-rw-r--r-- | sys/arch/mac68k/include/pio.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/mac68k/include/pio.h b/sys/arch/mac68k/include/pio.h index 88fef151f5f..afca5eabe2e 100644 --- a/sys/arch/mac68k/include/pio.h +++ b/sys/arch/mac68k/include/pio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pio.h,v 1.3 1997/11/30 06:10:32 gene Exp $ */ +/* $OpenBSD: pio.h,v 1.4 2001/01/15 19:50:38 deraadt Exp $ */ /* $NetBSD: pio.h,v 1.3 1994/10/26 08:46:38 cgd Exp $ */ /* @@ -13,29 +13,29 @@ #define inl(y) \ ({ unsigned long _tmp__; \ - asm volatile("inl %1, %0" : "=a" (_tmp__) : "d" ((unsigned short)(y))); \ + __asm__ __volatile__("inl %1, %0" : "=a" (_tmp__) : "d" ((unsigned short)(y))); \ _tmp__; }) #define inw(y) \ ({ unsigned short _tmp__; \ - asm volatile(".byte 0x66; inl %1, %0" : "=a" (_tmp__) : "d" ((unsigned short)(y))); \ + __asm__ __volatile__(".byte 0x66; inl %1, %0" : "=a" (_tmp__) : "d" ((unsigned short)(y))); \ _tmp__; }) #define inb(y) \ ({ unsigned char _tmp__; \ - asm volatile("inb %1, %0" : "=a" (_tmp__) : "d" ((unsigned short)(y))); \ + __asm__ __volatile__("inb %1, %0" : "=a" (_tmp__) : "d" ((unsigned short)(y))); \ _tmp__; }) #define outl(x, y) \ -{ asm volatile("outl %0, %1" : : "a" (y) , "d" ((unsigned short)(x))); } +{ __asm__ __volatile__("outl %0, %1" : : "a" (y) , "d" ((unsigned short)(x))); } #define outw(x, y) \ -{asm volatile(".byte 0x66; outl %0, %1" : : "a" ((unsigned short)(y)) , "d" ((unsigned short)(x))); } +{__asm__ __volatile__(".byte 0x66; outl %0, %1" : : "a" ((unsigned short)(y)) , "d" ((unsigned short)(x))); } #define outb(x, y) \ -{ asm volatile("outb %0, %1" : : "a" ((unsigned char)(y)) , "d" ((unsigned short)(x))); } +{ __asm__ __volatile__("outb %0, %1" : : "a" ((unsigned char)(y)) , "d" ((unsigned short)(x))); } #endif /* _MAC68K_PIO_H_ */ |