linux/arch/powerpc
Michael Ellerman c1a72173ab [POWERPC] spufs: Don't return -ENOSYS as extra notes size if spufs is not loaded
Because the SPU coredump code might be built as part of a module (spufs),
we have a stub which is called by the coredump code, this routine then calls
into spufs if it's loaded.

Unfortunately the stub returns -ENOSYS if spufs is not loaded, which is
interpreted by the coredump code as an extra note size of -38 bytes. This
leads to a corrupt core dump.

If spufs is not loaded there will be no SPU ELF notes to write, and so the
extra notes size will be == 0.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-09-19 15:12:18 +10:00
..
boot [POWERPC] MPC832x_RDB: Update dts to use SPI1 in QE, register mmc_spi stub 2007-09-14 08:54:13 -05:00
configs [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port 2007-09-14 08:51:54 -05:00
kernel [POWERPC] Remove barriers from the SLB shadow buffer update 2007-09-19 14:40:54 +10:00
lib Remove fs.h from mm.h 2007-07-29 17:09:29 -07: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 [POWERPC] Remove barriers from the SLB shadow buffer update 2007-09-19 14:40:54 +10:00
oprofile Remove fs.h from mm.h 2007-07-29 17:09:29 -07:00
platforms [POWERPC] spufs: Don't return -ENOSYS as extra notes size if spufs is not loaded 2007-09-19 15:12:18 +10:00
sysdev [POWERPC] fsl_soc: add support for fsl_spi 2007-09-14 08:54:09 -05:00
xmon [POWERPC] fix showing xmon help 2007-07-22 21:30:58 +10:00
.gitignore [POWERPC] Add files build to .gitignore 2006-12-04 20:41:29 +11:00
Kconfig [POWERPC] IOMMU virtual merge is no longer experimental 2007-09-14 01:33:19 +10:00
Kconfig.debug [POWERPC] Export virq mapping via debugfs 2007-09-14 01:33:20 +10:00
Makefile [POWERPC] Stop include asm-ppc when building ARCH=powerpc for ppc32 2007-08-22 22:47:33 -05:00