summaryrefslogtreecommitdiff
path: root/include/kexec-uImage.h
diff options
context:
space:
mode:
authorSuzuki K. Poulose <suzuki@in.ibm.com>2011-07-12 15:20:40 +0530
committerSimon Horman <horms@verge.net.au>2011-07-13 11:39:58 +0900
commit13f6d71bdf9836b90ae4ec21209383f1a3c56b0f (patch)
tree21eb51a4571b379ca52942fd41e304afb367a681 /include/kexec-uImage.h
parent9ec3fac7e8840fb31891ba49a626c5dd33e09e86 (diff)
kexec-tools: ppc32: Fixup ThreadPointer for purgatory code
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@in.ibm.com> Cc: Ryan S. Arnold <rsa@us.ibm.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include/kexec-uImage.h')
0 files changed, 0 insertions, 0 deletions