[POWERPC] convert string i/o operations to C

David Howells dhowells at redhat.com
Tue Sep 19 22:42:58 EST 2006


Stephen Rothwell <sfr at canb.auug.org.au> wrote:

> +void _insb(volatile u8 __iomem *port, void *buf, int ns)
> +{
> +	asm volatile("sync");
> +	if (ns <= 0)
> +		return;

What is "ns" meant to do?  It seems to degrade the _insb() op to just a sync,
but is that correct?

David



More information about the Linuxppc-dev mailing list