linux/arch/powerpc/platforms
Arnd Bergmann 274cef5e9d [POWERPC] spufs: fix another off-by-one bug in spufs_mbox_read
Currently, spufs_mbox_read transfers more bytes than requested on a
read.  If you ask for four bytes, you get eight.  This fixes it to
transfer the largest multiple of four bytes that is less than or equal
to the number you asked for.

Note: one nasty property of this file in spufs is that you can only
read multiples of four bytes in the first place, since there is no way
to atomically put back a few bytes into the hardware register.  Thus,
reading less than four bytes returns -EINVAL.  Asking for more than
four returns the largest possible multiple of four.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-10-25 12:10:41 +10:00
..
4xx ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
8xx powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
82xx [HEADERS] Put linux/config.h out of its misery. 2006-10-09 19:13:51 -04:00
83xx [POWERPC] Add Makefile entry for MPC832x_mds support 2006-10-16 15:53:30 +10:00
85xx [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
86xx [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
apus powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
cell [POWERPC] spufs: fix another off-by-one bug in spufs_mbox_read 2006-10-25 12:10:41 +10:00
chrp [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
embedded6xx [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
iseries [POWERPC] Consolidate feature fixup code 2006-10-25 11:42:10 +10:00
maple [POWERPC] Fix Maple secondary IDE interrupt 2006-10-10 11:54:26 +10:00
pasemi [PATCH] trivial iomem annotations (arch/powerpc/platfroms/parsemi/pci.c) 2006-10-09 14:19:08 -07:00
powermac [POWERPC] Fix build breakage with CONFIG_PPC32 2006-10-23 18:23:17 +10:00
prep powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
pseries [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
Makefile [POWERPC] powerpc: PA Semi PWRficient platform support 2006-09-13 18:39:53 +10:00