On Tuesday 17 November 2015 17:40:03 [email protected] wrote:
> +/*
> + * Emulate x86 io ports for arm.
> + */
> +#define __armio(addr) ( (void __iomem *)addr )
> +
> +#define inb(c) ( readb( __armio(c) ) )
> +#define inw(c) ( readw( __armio(c) ) )
> +#define inl(c) ( readl( __armio(c) ) )
> +
> +#define outb(v, c) ( writeb(v, __armio(c) ) )
> +#define outw(v, c) ( writew(v, __armio(c) ) )
> +#define outl(v, c) ( writel(v, __armio(c) ) )
> +
This is almost certainly wrong. There might be I/O port accesses, but they
won't be in the same place as normal pointers.
Arnd
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel