mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/8] ARM64: rewrite ENTRY_FUNCTION_WITHSTACK in assembly
@ 2022-10-24  6:57 Ahmad Fatoum
  2022-10-24  6:57 ` [PATCH 1/8] ARM64: cpu: select HAVE_PBL_MULTI_IMAGES globally Ahmad Fatoum
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Ahmad Fatoum @ 2022-10-24  6:57 UTC (permalink / raw)
  To: barebox

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




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-10-24 12:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-24  6:57 [PATCH 0/8] ARM64: rewrite ENTRY_FUNCTION_WITHSTACK in assembly Ahmad Fatoum
2022-10-24  6:57 ` [PATCH 1/8] ARM64: cpu: select HAVE_PBL_MULTI_IMAGES globally Ahmad Fatoum
2022-10-24  6:57 ` [PATCH 2/8] ARM64: asm: define ENTRY_FUNCTION in terms of ENTRY_FUNCTION_WITHSTACK Ahmad Fatoum
2022-10-24  6:57 ` [PATCH 3/8] pbl: have linker define __pbl_board_entry alias Ahmad Fatoum
2022-10-24  6:57 ` [PATCH 4/8] asm-generic: memory_layout: define __keep_symbolref() Ahmad Fatoum
2022-10-24  6:57 ` [PATCH 5/8] ARM64: asm: rewrite ENTRY_FUNCTION(_WITHSTACK) fully in assembly Ahmad Fatoum
2022-10-24  8:55   ` Sascha Hauer
2022-10-24 10:02     ` Ahmad Fatoum
2022-10-24 12:11   ` [PATCH] fixup! " Ahmad Fatoum
2022-10-24  6:57 ` [PATCH 6/8] ARM64: asm: drop __barebox_arm_head Ahmad Fatoum
2022-10-24  6:57 ` [PATCH 7/8] ARM: asm: cleanup 32-bit entry points Ahmad Fatoum
2022-10-24  6:57 ` [PATCH 8/8] Documentation: devel: porting: bring it up-to-date Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox