linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] ARM: kexec: Add dtb kexec support
@ 2012-09-06 13:35 Matthew Leach
  2012-09-06 13:35 ` [RFC PATCH 1/2] ARM: kexec: scan for dtb magic in segments Matthew Leach
  2012-09-06 13:35 ` [RFC PATCH 2/2] ARM: kexec: Check segment memory addresses Matthew Leach
  0 siblings, 2 replies; 5+ messages in thread
From: Matthew Leach @ 2012-09-06 13:35 UTC (permalink / raw)
  To: linux-arm-kernel

Currently the value of r2 that is passed to the new kernel when
performing a kexec() is hard coded to an address that is 16Kb before
the kernel image. A dtb file may be much larger and thus get corrupted
by the decompressor's page tables.

These patches, along with a set of kexec-tools patches, move the dtb
to a more sane location. The kernel will scan each segment for the dtb
magic within the first four bytes of each segment to identify the
physical address to pass through to the new kernel in r2.


Matthew Leach (2):
  ARM: kexec: scan for dtb magic in segments
  ARM: kexec: Check segment memory addresses

 arch/arm/kernel/machine_kexec.c | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

-- 
1.7.12

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-07  0:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-06 13:35 [RFC PATCH 0/2] ARM: kexec: Add dtb kexec support Matthew Leach
2012-09-06 13:35 ` [RFC PATCH 1/2] ARM: kexec: scan for dtb magic in segments Matthew Leach
2012-09-07  0:55   ` Simon Horman
2012-09-06 13:35 ` [RFC PATCH 2/2] ARM: kexec: Check segment memory addresses Matthew Leach
2012-09-07  0:55   ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).