android_kernel_xiaomi_sdm845/arch/powerpc/platforms
Gerhard Stenzel ada397e93d [POWERPC] spufs: fix incorrect file descriptors in SPU coredump note names
At present, ppu-gdb can't trace spu infomation with coredump generated
by the kernel. While the core dumps notes have correct contents, they
have the wrong names, as the file descriptors used to generate the note
names are off-by-one. An application that opens a SPE context as fd 3,
the current core dump code will generate notes like:
  SPU/4/mem
  SPU/4/regs
etc.

This confuses GDB, which knows it is looking for SPE context 3 (from
parsing the spu_context_run system call arguments), and cannot find
any notes that match context 3.

This change corrects the file descriptor counting, to only increment
the fd until after we've written the note name.

Signed-off-by: Gerhard Stenzel <stenzel@de.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2008-03-28 14:36:15 +11:00
..
8xx [POWERPC] 8xx: adder875, ep88xc: fix to match recent 8xx cleanups. 2008-02-05 23:29:58 -06:00
40x Merge branch 'virtex-for-2.6.25' of git://git.secretlab.ca/git/linux-2.6-virtex into for-2.6.25 2008-02-06 21:06:45 -06:00
44x [POWERPC] 44x: Fix Kconfig formatting 2008-02-15 22:05:03 -06:00
52xx [POWERPC] Add export for mpc52xx_set_psc_clkdiv 2008-02-23 22:51:28 -07:00
82xx [POWERPC] arch/powerpc/platforms/82xx: Add missing of_node_put 2008-02-06 22:06:59 +11:00
83xx [POWERPC] 83xx: Add local bus device nodes to MPC837xMDS device trees. 2008-03-07 08:42:22 -06:00
85xx [POWERPC] 85xx: convert sbc85* boards to use machine_device_initcall 2008-01-28 13:15:26 -06:00
86xx [POWERPC] 86xx: MPC8641 HPCN - call of_platform_bus_probe() 2008-01-23 19:35:02 -06:00
512x [POWERPC] Remove unused CONFIG_WANT_DEVICE_TREE 2008-02-14 22:11:03 +11:00
cell [POWERPC] spufs: fix incorrect file descriptors in SPU coredump note names 2008-03-28 14:36:15 +11:00
celleb [POWERPC] move celleb DABRX definitions 2008-03-03 08:03:14 +01:00
chrp [POWERPC] Autodetect serial console on pegasos2 2008-01-25 22:52:55 +11:00
embedded6xx [POWERPC] Remove unused CONFIG_WANT_DEVICE_TREE 2008-02-14 22:11:03 +11:00
iseries [POWERPC] free_property() must not be __init 2008-02-14 22:11:02 +11:00
maple [POWERPC] Use <linux/of_{platform, device}.h> and not <asm/...> variants. 2008-01-17 14:58:57 +11:00
pasemi [POWERPC] pasemi: Register i2c devices at boot 2008-02-21 21:08:35 +11:00
powermac [POWERPC] Fix arch/powerpc/platforms/powermac/pic.c when !CONFIG_ADB_PMU 2008-03-13 10:09:27 +11:00
prep [POWERPC] Split several platforms into their respective Kconfig file 2007-03-22 10:07:32 -05:00
ps3 [POWERPC] PS3: Remove lpar address workaround 2008-01-25 22:52:53 +11:00
pseries [POWERPC] Fix warning in pseries/power.c 2008-02-20 13:33:37 +11:00
fsl_uli1575.c [POWERPC] Fix interrupt routing and setup of ULI M1575 on FSL boards 2007-08-17 13:22:16 -05:00
Kconfig [POWERPC] 83xx: Make 83xx perfmon support selectable 2008-03-10 09:31:43 -05:00
Kconfig.cputype [POWERPC] 83xx: Make 83xx perfmon support selectable 2008-03-10 09:31:43 -05:00
Makefile [POWERPC] mpc512x: Basic platform support 2008-02-06 14:03:10 -07:00