[PATCH 0/8] ARM64: rewrite ENTRY_FUNCTION_WITHSTACK in assembly

Ahmad Fatoum a.fatoum at pengutronix.de
Sun Oct 23 23:57:08 PDT 2022


Recent episode with pointer authentication showed again that for
platforms without __attribute__((naked)), we are better off writing
the early header in assembly. With some slight linker magic, we can
move the header code into assembly without board code ENTRY_POINT
definitions having to change.

Ahmad Fatoum (8):
  ARM64: cpu: select HAVE_PBL_MULTI_IMAGES globally
  ARM64: asm: define ENTRY_FUNCTION in terms of ENTRY_FUNCTION_WITHSTACK
  pbl: have linker define __pbl_board_entry alias
  asm-generic: memory_layout: define __keep_symbolref()
  ARM64: asm: rewrite ENTRY_FUNCTION(_WITHSTACK) fully in assembly
  ARM64: asm: drop __barebox_arm_head
  ARM: asm: cleanup 32-bit entry points
  Documentation: devel: porting: bring it up-to-date

 Documentation/devel/porting.rst               | 26 +++++++----
 Makefile                                      |  3 +-
 arch/arm/cpu/Kconfig                          |  1 +
 arch/arm/cpu/Makefile                         |  2 +
 arch/arm/cpu/head_64.S                        | 36 +++++++++++++++
 arch/arm/include/asm/barebox-arm-head.h       | 17 +------
 arch/arm/include/asm/barebox-arm.h            | 45 ++++++++-----------
 arch/arm/lib/pbl.lds.S                        |  9 ++++
 .../include/mach/barebox-arm-head.h           | 17 -------
 images/Makefile                               |  1 +
 include/asm-generic/memory_layout.h           |  7 +++
 11 files changed, 95 insertions(+), 69 deletions(-)
 create mode 100644 arch/arm/cpu/head_64.S

-- 
2.30.2




More information about the barebox mailing list