]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc/kdump: Use ppc_save_regs() in crash_setup_regs()
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Wed, 17 Dec 2008 10:09:35 +0000 (10:09 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 8 Jan 2009 05:25:17 +0000 (16:25 +1100)
commit02af87a74271977d09ece9b709909dcae3f9fab9
tree3bbbe3db68e050d3d2e46529a91d9452c6d79490
parent1edda9c795b99c3761715a73f62a78fce41a1f1d
powerpc/kdump: Use ppc_save_regs() in crash_setup_regs()

The patch replaces internal registers dump implementation with
ppc_save_regs(). From now on PPC64 and PPC32 are using the same
code for crash_setup_regs().

NOTE: The old regs dump implementation was capturing SP (r1) directly
as is, so you could see crash_kexec() function on top of the back-trace.
But ppc_save_regs() goes up one stack frame, so you'll not see it
anymore, at the top-level you'll see who actually triggered the crash
dump instead.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/kexec.h