summaryrefslogtreecommitdiff
path: root/arch/arm/Makefile
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-07-16 14:32:37 +0300
committerRussell King <rmk+kernel@armlinux.org.uk>2019-08-23 13:39:29 +0300
commit20699a42c020289e31afe33ff0909acdc5ca1350 (patch)
tree9228950881f670704a85453fd584b4bddc6f9ff4 /arch/arm/Makefile
parent3c86889b0584be3e0243c22bf0901f12dfebac9a (diff)
downloadlinux-20699a42c020289e31afe33ff0909acdc5ca1350.tar.xz
ARM: 8893/1: boot: Explain the 8 nops
This was unclear to me until Russell explained the obvious that 8 nops are added to offset an a.out image. Reading git history reveals that thumb kernels first removed the nops and then kept 7 of them (the last instruction being a switch to thumb mode) as it turns out that some boot loaders were using this as a "patch area". Also the magic numbers after the initial nops and the jump of course need to stay in the same offset for kernel file detection. Make the code easier to understand with a comment. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by: Nicolas Pitre <nico@fluxnic.net> Acked-by: Roy Franz <rfranz@marvell.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/Makefile')
0 files changed, 0 insertions, 0 deletions