Commit ef01b9a0 authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt

sh: fix kexec by removing check for old kexec-tools

This unbreaks kexec support. Without this fix all
cases of kexec fails since __pa() does not behave
like PHYSADDR(). The downside is that we also kill
the code blocking users running old kexec-tools.
Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 6253195b
...@@ -46,12 +46,6 @@ void machine_crash_shutdown(struct pt_regs *regs) ...@@ -46,12 +46,6 @@ void machine_crash_shutdown(struct pt_regs *regs)
*/ */
int machine_kexec_prepare(struct kimage *image) int machine_kexec_prepare(struct kimage *image)
{ {
/* older versions of kexec-tools are passing
* the zImage entry point as a virtual address.
*/
if (image->start != __pa(image->start))
return -EINVAL; /* upgrade your kexec-tools */
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment