kernel-fxtec-pro1x/arch/powerpc
Michael Ellerman e55014923e [POWERPC] spufs: Cleanup ELF coredump extra notes logic
To start with, arch_notes_size() etc. is a little too ambiguous a name for
my liking, so change the function names to be more explicit.

Calling through macros is ugly, especially with hidden parameters, so don't
do that, call the routines directly.

Use ARCH_HAVE_EXTRA_ELF_NOTES as the only flag, and based on it decide
whether we want the extern declarations or the empty versions.

Since we have empty routines, actually use them in the coredump code to
save a few #ifdefs.

We want to change the handling of foffset so that the write routine updates
foffset as it goes, instead of using file->f_pos (so that writing to a pipe
works).  So pass foffset to the write routine, and for now just set it to
file->f_pos at the end of writing.

It should also be possible for the write routine to fail, so change it to
return int and treat a non-zero return as failure.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-09-19 15:12:19 +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
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: Cleanup ELF coredump extra notes logic 2007-09-19 15:12:19 +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
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