1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-14 14:31:45 +02:00

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>
This commit is contained in:
Philipp Tomsich
2017-10-10 16:21:01 +02:00
parent 16fa2eb951
commit ef70a42f0f
2 changed files with 35 additions and 20 deletions

View File

@@ -1,4 +1,3 @@
/*
* Copyright 2017 Theobroma Systems Design und Consulting GmbH
*