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, 24 Jul 2014 21:58:42 +0000 (22:58 +0100)
commit19227cf4a6abdcda189cfc853e72c69b5cc1916d
tree101e306747b1b6438e173d1d73a83f3cc8fc3563
parent24439fe94eaa533c36227c7d856021ec99696c0b
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>
(cherry picked from commit 3033aae67ae55a86e2a0b73199984ff060effa7b)
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/arm64/booting.txt
arch/arm64/kernel/head.S