diff options
author | Magnus Damm <damm@igel.co.jp> | 2008-08-27 18:19:01 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-08-28 14:53:03 +0900 |
commit | 5734493bac88b28d8d7e2f262305fd6e83545ac5 (patch) | |
tree | 446469c18abb16f14d7ee54bdc2fbe76fc1c9aaa /arch/sh/kernel | |
parent | 34894c7843e00972d88b3592027703d4e05a06a7 (diff) | |
download | op-kernel-dev-5734493bac88b28d8d7e2f262305fd6e83545ac5.zip op-kernel-dev-5734493bac88b28d8d7e2f262305fd6e83545ac5.tar.gz |
sh: fix kexec entry point for crash kernels
The crash kernel entry point is currently checked by the kexec kernel
code and only physical addresses in the reserved memory window are
accepted. This means that we can't pass P2 or P1 addresses as entry
points in the case of crash kernels. This patch makes sure we can start
crash kernels by adding support for physical address entry points.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/machine_kexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/machine_kexec.c b/arch/sh/kernel/machine_kexec.c index 4703dff..94df56b 100644 --- a/arch/sh/kernel/machine_kexec.c +++ b/arch/sh/kernel/machine_kexec.c @@ -102,7 +102,7 @@ void machine_kexec(struct kimage *image) /* now call it */ rnk = (relocate_new_kernel_t) reboot_code_buffer; - (*rnk)(page_list, reboot_code_buffer, image->start, vbr_reg); + (*rnk)(page_list, reboot_code_buffer, P2SEGADDR(image->start), vbr_reg); } void arch_crash_save_vmcoreinfo(void) |