[POWERPC] spufs: use memcpy_fromio() to copy from local store
commit9e2fe2ce4e957a79d3dc5d813e0cfb10d79b79b3
authorAkinobu Mita <mita@fixstars.com>
Mon, 23 Apr 2007 19:08:22 +0000 (23 21:08 +0200)
committerArnd Bergmann <arnd@klappe.arndb.de>
Mon, 23 Apr 2007 19:18:57 +0000 (23 21:18 +0200)
tree1e7905b1bbf362e18d18636557e0cecf964d1a99
parent8a7d86bdb22678b17928eef0c8fa356d8b21cc76
[POWERPC] spufs: use memcpy_fromio() to copy from local store

GCC may generates inline copy loop to handle memcpy() function
instead of kernel defined memcpy(). But this inlined version of memcpy()
causes an alignment interrupt when copying from local store.

This patch uses memcpy_fromio() and memcpy_toio to copy local store
to prevent memcpy() being inlined.

Signed-off-by: Akinobu Mita <mita@fixstars.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
arch/powerpc/platforms/cell/spufs/run.c