diff options
author | Stefan Roese <sr@denx.de> | 2007-02-27 21:56:06 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-02-27 21:56:06 +0100 |
commit | 621a7873ef205c4325fc07c646bd1d509763b22f (patch) | |
tree | 3e2006c9f3a953532bb6a97d896390f03e58bd03 /include/asm-nios2/io.h | |
parent | 2e46b8fc8c16728ec3a5db2701026bbd1334ecdc (diff) | |
parent | 743571145b37182757d4e688a77860b36ee77573 (diff) | |
download | u-boot-imx-621a7873ef205c4325fc07c646bd1d509763b22f.zip u-boot-imx-621a7873ef205c4325fc07c646bd1d509763b22f.tar.gz u-boot-imx-621a7873ef205c4325fc07c646bd1d509763b22f.tar.bz2 |
Merge with git+ssh://sr@pollux.denx.org/home/sr/git/u-boot/denx/.git
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 0fab53b..5bb5322 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); |