ARM: 7539/1: kexec: scan for dtb magic in segments
authorMatthew Leach <matthew.leach@arm.com>
Fri, 21 Sep 2012 17:56:02 +0000 (18:56 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 26 Sep 2012 21:58:36 +0000 (22:58 +0100)
This patch allows a dtb to be passed to a new kernel using the kexec
mechinism.

When loading segments from userspace, scan each segment's first four
bytes for the dtb magic. If this is found set the kexec_boot_atags
parameter to the relocate_kernel code to the phyical address of this
segment.

Reviewed-by: Simon Horman <horms@verge.net.au>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Matthew Leach <matthew.leach@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

No differences found