summaryrefslogtreecommitdiff
path: root/include/x86
diff options
context:
space:
mode:
authorSuzuki K. Poulose <suzuki@in.ibm.com>2013-03-03 13:06:00 +0530
committerSimon Horman <horms@verge.net.au>2013-03-05 10:40:20 +0900
commit28d413ad1627d76acc8f0df3fdb91a3c8d14d92f (patch)
treea66d10e165e255104eefc7bb3608042f3cf86369 /include/x86
parent53bb3029557936ed12960e7cc2619a20ee7d382b (diff)
kexec/ppc: Fix kernel program entry point while changing the load addr
uImage probe fills the entry point (ep) based on the load_addr from the uImage headers. If we change the load_addr, we should accordingly update the entry point. For ELF, calculate the offset of e_entry from the virtual start address and add it to the physical start address to find the physical address of kernel entry. i.e, pa (e_entry) = pa(phdr[0].p_vaddr) + (e_entry - phdr[0].p_vaddr) = kernel_addr + (e_entry - phdr[0].p_vaddr) Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Matthew McClintock <msm@freescale.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include/x86')
0 files changed, 0 insertions, 0 deletions