arm64: Expand arm64 image header
authorRoy Franz <roy.franz@linaro.org>
Wed, 14 Aug 2013 23:10:00 +0000 (00:10 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 15 May 2014 18:59:56 +0000 (19:59 +0100)
commit3033aae67ae55a86e2a0b73199984ff060effa7b
tree83d875991efeae8822e0b8714b1659f1ca2295d4
parent52e83d9043b1699156b3a5f50356c23026ef17ad
arm64: Expand arm64 image header

Expand the arm64 image header to allow for co-existance with
PE/COFF header required by the EFI stub.  The PE/COFF format
requires the "MZ" header to be at offset 0, and the offset
to the PE/COFF header to be at offset 0x3c.  The image
header is expanded to allow 2 instructions at the beginning
to accommodate a benign intruction at offset 0 that includes
the "MZ" header, a magic number, and the offset to the PE/COFF
header.

Signed-off-by: Roy Franz <roy.franz@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 4370eec05a887b0cd4392cd5dc5b2713174745c0)
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/arm64/booting.txt
arch/arm64/kernel/head.S