From: Ahmad Fatoum <a.fatoum@pengutronix.de> To: barebox@lists.infradead.org Subject: [PATCH 0/8] ARM64: rewrite ENTRY_FUNCTION_WITHSTACK in assembly Date: Mon, 24 Oct 2022 08:57:08 +0200 [thread overview] Message-ID: <20221024065716.1215046-1-a.fatoum@pengutronix.de> (raw) 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
next reply other threads:[~2022-10-24 6:58 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-10-24 6:57 Ahmad Fatoum [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221024065716.1215046-1-a.fatoum@pengutronix.de \ --to=a.fatoum@pengutronix.de \ --cc=barebox@lists.infradead.org \ --subject='Re: [PATCH 0/8] ARM64: rewrite ENTRY_FUNCTION_WITHSTACK in assembly' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox