[PATCH, RESEND] imx: make IMX_IO_ADDRESS assembly compatible
Russell King - ARM Linux
linux at arm.linux.org.uk
Tue Mar 16 06:05:06 EDT 2010
On Tue, Mar 16, 2010 at 10:41:45AM +0200, Baruch Siach wrote:
> +#ifdef __ASSEMBLER__
> +#define IOMEM(addr,base,size,virt) ((addr) - (base) + (virt))
> +#else
> +#define IOMEM(addr,base,size,virt) \
> + ((void __force __iomem *) \
> + (((unsigned long) ((addr) - (base)) < size) ? \
> + (addr) - (base) + (virt) : 0))
> +#endif
If you look at:
http://lists.arm.linux.org.uk/lurker/message/20100311.105637.21ac15c1.en.html
you'll see this definition is incompatible with my stated aim for this
macro.
More information about the linux-arm-kernel
mailing list