From: matthew.leach@arm.com (Matthew Leach)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH 0/2] ARM: kexec: Add dtb kexec support
Date: Thu, 6 Sep 2012 14:35:01 +0100 [thread overview]
Message-ID: <1346938503-18142-1-git-send-email-matthew.leach@arm.com> (raw)
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
next reply other threads:[~2012-09-06 13:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-06 13:35 Matthew Leach [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1346938503-18142-1-git-send-email-matthew.leach@arm.com \
--to=matthew.leach@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).