diff options
Diffstat (limited to 'include/asm-nios2/io.h')
| -rw-r--r-- | include/asm-nios2/io.h | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/include/asm-nios2/io.h b/include/asm-nios2/io.h index 0fab53bf0..5bb532295 100644 --- a/include/asm-nios2/io.h +++ b/include/asm-nios2/io.h @@ -24,7 +24,10 @@  #ifndef __ASM_NIOS2_IO_H_  #define __ASM_NIOS2_IO_H_ -#define sync() asm volatile ("sync" : : : "memory"); +static inline void sync(void) +{ +	__asm__ __volatile__ ("sync" : : : "memory"); +}  extern unsigned char inb (unsigned char *port);  extern unsigned short inw (unsigned short *port); |