]> git.ipfire.org Git - people/ms/u-boot.git/commit
arm: boot0 hook: move boot0 hook before '_start'
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 10 Oct 2017 14:21:01 +0000 (16:21 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 21 Nov 2017 22:57:21 +0000 (23:57 +0100)
commitef70a42f0ffc6b43f719810c4e3861c55c2eefbc
treefdb3bc523dd8cdb888d40dc1c748f6e62b350cd3
parent16fa2eb95172e63820ee5f3d4052f3362a6de84e
arm: boot0 hook: move boot0 hook before '_start'

The boot0 hook on ARM does not insert its payload before the vector
table. This is both a mismatch with thec comment above it and
contradict usage of the boot0 hook on ARM64.

To fix this (and unify the semantics for ARM and ARM64), we change the
boot0-hook semantics on ARM to match those on ARM64:
  (1) if a boot0-hook is present it is inserted at the start of
      the image
  (2) if a boot0-hook is present, emitting the ARM vector table
      (and the _start) symbol are suppressed in vectors.S and
      the boot0-hook has full control over where and when it
      wants to emit these

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/include/asm/arch-rockchip/boot0.h
arch/arm/lib/vectors.S