From: Mahesh Salgaonkar Date: Thu, 16 Feb 2012 01:14:45 +0000 (+0000) Subject: fadump: Convert firmware-assisted cpu state dump data into elf notes. X-Git-Tag: v3.4-rc1~159^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebaeb5ae24379b5b635dc1d1fa6df904bc95b4d9;p=pandora-kernel.git fadump: Convert firmware-assisted cpu state dump data into elf notes. When registered for firmware assisted dump on powerpc, firmware preserves the registers for the active CPUs during a system crash. This patch reads the cpu register data stored in Firmware-assisted dump format (except for crashing cpu) and converts it into elf notes and updates the PT_NOTE program header accordingly. The exact register state for crashing cpu is saved to fadump crash info structure in scratch area during crash_fadump() and read during second kernel boot. Signed-off-by: Mahesh Salgaonkar Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed