Skip to contentSkip to conversation

sh: use physical address for zImage entry

PATCH Applied Magnus Damm 2 participants 2 messages Mar 18, 2009 – Mar 19, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: use physical address for zImage entry

From: Magnus Damm <[email protected]>

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

---

 kexec/arch/sh/kexec-zImage-sh.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kexec/arch/sh/kexec-zImage-sh.c +1 -1
@@ -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
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Applied
#1 lore raw
Quoted 6 lines · Magnus Damm

From: Magnus Damm <[email protected]>

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

Thanks, applied.

Signature · 9 lines
Simon Horman
  VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
  H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec