summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-03-18 20:22:51 +0900
committerSimon Horman <horms@verge.net.au>2009-03-19 13:51:59 +1100
commit7ca0270ab3e2f1abcc520f59c6795f1b873bddcd (patch)
treea55f3449594ddf44c424f1b615b54f1c4a9593ac
parent09e2b3a3f9f6477875da1bfacdcf1f1bb1b4486a (diff)
sh: use physical address for zImage entry
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> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/sh/kexec-zImage-sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/sh/kexec-zImage-sh.c b/kexec/arch/sh/kexec-zImage-sh.c
index 3758056..f3cf232 100644
--- a/kexec/arch/sh/kexec-zImage-sh.c
+++ b/kexec/arch/sh/kexec-zImage-sh.c
@@ -140,6 +140,6 @@ int zImage_sh_load(int argc, char **argv, const char *buf, off_t len,
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;
}