[PATCH] [v3] kexec-tools: ppc32: Fixup ThreadPointer for purgatory code
horms at verge.net.au
Wed Jul 13 12:41:14 EST 2011
On Tue, Jul 12, 2011 at 03:20:40PM +0530, Suzuki K. Poulose wrote:
> PPC32 ELF ABI expects r2 to be loaded with Thread Pointer, which is 0x7000
> bytes past the end of TCB. Though the purgatory is single threaded, it uses
> TCB scratch space in vsnprintf(). This patch allocates a 1024byte TCB
> and populates the TP with the address accordingly.
> Changes from V2: Avoid address overflow in TP allocation.
> Changes from V1: Fixed the addr calculation for uImage support.
> Signed-off-by: Suzuki K. Poulose <suzuki at in.ibm.com>
> Cc: Ryan S. Arnold <rsa at us.ibm.com>
More information about the Linuxppc-dev