[U-Boot] [PATCH] ARM: fix write*() I/O accessors

Alexander Holler holler at ahsoftware.de
Fri Feb 11 23:51:54 CET 2011


Hello,

Am 11.02.2011 23:25, schrieb Wolfgang Denk:
> +#define writeb(v,c)	({ u8  __v = v; __iowmb(); __arch_putb(__v,c); __v; })
> +#define writew(v,c)	({ u16 __v = v; __iowmb(); __arch_putw(__v,c); __v; })
> +#define writel(v,c)	({ u32 __v = v; __iowmb(); __arch_putl(__v,c); __v; })


Thanks a lot, can I have the do {} while() back? I still don't like such 
macro-making-sense-only constructs. (Just kidding). ;)

Regards,

Alexander


More information about the U-Boot mailing list