* [PATCH] sh: use physical address for zImage entry
@ 2009-03-18 11:22 Magnus Damm
2009-03-19 2:55 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2009-03-18 11:22 UTC (permalink / raw)
To: kexec; +Cc: horms, Magnus Damm
From: Magnus Damm <damm@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@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;
}
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-19 2:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-18 11:22 [PATCH] sh: use physical address for zImage entry Magnus Damm
2009-03-19 2:55 ` Simon Horman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.