[PATCH] sh: use physical address for zImage entry

Magnus Damm magnus.damm at gmail.com
Wed Mar 18 07:22:51 EDT 2009


From: Magnus Damm <damm at igel.co.jp>

Use a physical address for the SuperH zImage entry point.
This makes the zImage loader behave as the elf loader.

Signed-off-by: Magnus Damm <damm at igel.co.jp>
---

 kexec/arch/sh/kexec-zImage-sh.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 0001/kexec/arch/sh/kexec-zImage-sh.c
+++ work/kexec/arch/sh/kexec-zImage-sh.c	2009-03-18 20:09:56.000000000 +0900
@@ -140,6 +140,6 @@ int zImage_sh_load(int argc, char **argv
 
 	image_base = (empty_zero + (0x10000 - 1)) & ~(0x10000 - 1);
 	add_segment(info, buf, len, image_base, len);
-	info->entry = (void *)image_base;
+	info->entry = (void *)virt_to_phys(image_base);
 	return 0;
 }



More information about the kexec mailing list