Re: [PATCH 2 of 2] __raw_memcpy_toio32 for x86_64

From: Andi Kleen
Date: Wed Jan 11 2006 - 20:26:59 EST


On Thursday 12 January 2006 02:21, Roland Dreier wrote:

> Andi> movsq? I thought you wanted 32bit IO?
>
> The idea is to do I/O in at least 32-bit chunks to cope with hardware
> that can't handle 8-bit or 16-bit accesses. 64-bit chunks are OK for
> Pathscale hardware.

Well then they can just as well use normal memcpy as long as they don't
pass any sizes % 4 != 0. That should be ok as long as they add a comment
there.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/