Skip to contentSkip to conversation

sh: fix kexec entry point for crash kernels

PATCH New Magnus Damm 1 participant 1 message Aug 27, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: fix kexec entry point for crash kernels

From: Magnus Damm <[email protected]>

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.

---

 arch/sh/kernel/machine_kexec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sh/kernel/machine_kexec.c +1 -1
@@ -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)