]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] spufs: use memcpy_fromio() to copy from local store
authorAkinobu Mita <mita@fixstars.com>
Mon, 23 Apr 2007 19:08:22 +0000 (21:08 +0200)
committerArnd Bergmann <arnd@klappe.arndb.de>
Mon, 23 Apr 2007 19:18:57 +0000 (21:18 +0200)
commitb23ae4f184d300388ba36e105770a686f933b5de
tree1e7905b1bbf362e18d18636557e0cecf964d1a99
parent9a539ddabbcf98fbf5bdc29bc7671e5505edd003
[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