alistair23-linux/arch/powerpc
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
..
boot [POWERPC] Don't require execute perms on wrapper when building zImage.initrd 2006-10-23 18:23:17 +10:00
configs [PATCH] Reintroduce NODES_SPAN_OTHER_NODES for powerpc 2006-10-21 13:35:06 -07:00
kernel [POWERPC] Fix device_is_compatible() const warning 2006-10-25 11:54:24 +10:00
lib [POWERPC] Fix rheap alignment problem 2006-10-02 20:27:47 +10:00
math-emu [POWERPC] ppc math-emu needs -fno-builtin-fabs for math.c and fabs.c 2006-09-26 15:24:35 +10:00
mm [PATCH] mm: use symbolic names instead of indices for zone initialisation 2006-10-11 11:14:14 -07:00
oprofile [POWERPC] Add 970GX cputable entry 2006-10-23 18:23:17 +10:00
platforms [POWERPC] spufs: fix another off-by-one bug in spufs_mbox_read 2006-10-25 12:10:41 +10:00
sysdev [POWERPC] Fix spelling errors in ucc_fast.c and ucc_slow.c 2006-10-23 18:23:17 +10:00
xmon [POWERPC] Fix xmon IRQ handler for pt_regs removal 2006-10-10 11:47:07 +10:00
Kconfig [PATCH] Reintroduce NODES_SPAN_OTHER_NODES for powerpc 2006-10-21 13:35:06 -07:00
Kconfig.debug [POWERPC] print backtrace when entering xmon 2006-09-13 18:39:53 +10:00
Makefile [POWERPC] Create a "wrapper" script and use it in arch/powerpc/boot 2006-09-28 14:30:02 +10:00