aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/head.S
diff options
context:
space:
mode:
authorRoy Franz <roy.franz@linaro.org>2013-08-14 19:10:00 -0400
committerCatalin Marinas <catalin.marinas@arm.com>2013-08-22 06:45:04 -0400
commit4370eec05a887b0cd4392cd5dc5b2713174745c0 (patch)
treef4d125163eef7b312ae2fcae8fa2b60e562d75c8 /arch/arm64/kernel/head.S
parent360b35a874f130305715b1b854b67dc40826fc91 (diff)
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>
Diffstat (limited to 'arch/arm64/kernel/head.S')
-rw-r--r--arch/arm64/kernel/head.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S
index 53dcae49e729..7090c126797c 100644
--- a/arch/arm64/kernel/head.S
+++ b/arch/arm64/kernel/head.S
@@ -112,6 +112,14 @@
112 .quad TEXT_OFFSET // Image load offset from start of RAM 112 .quad TEXT_OFFSET // Image load offset from start of RAM
113 .quad 0 // reserved 113 .quad 0 // reserved
114 .quad 0 // reserved 114 .quad 0 // reserved
115 .quad 0 // reserved
116 .quad 0 // reserved
117 .quad 0 // reserved
118 .byte 0x41 // Magic number, "ARM\x64"
119 .byte 0x52
120 .byte 0x4d
121 .byte 0x64
122 .word 0 // reserved
115 123
116ENTRY(stext) 124ENTRY(stext)
117 mov x21, x0 // x21=FDT 125 mov x21, x0 // x21=FDT