[PATCH 0/2] ARM: Avoid to clear bss multiple times
Sascha Hauer
s.hauer at pengutronix.de
Thu Feb 26 04:23:28 PST 2026
Currently we clear the bss everytime we call setup_c(). We can do better
and clear it only once which makes for example alloc_pte() in the PBL
MMU setup preserve its state and we can call mmu_early_enable() multiple
times without harm.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
Sascha Hauer (2):
ARM: setupc_32: remove relocation code from setup_c
ARM: setup_c: avoid clearing BSS twice
arch/arm/cpu/common.c | 2 ++
arch/arm/cpu/setupc_32.S | 35 +++++++++++++----------------------
arch/arm/cpu/setupc_64.S | 10 ++++++++--
3 files changed, 23 insertions(+), 24 deletions(-)
---
base-commit: bd5518cd7e34861706f87c8ca67b640d6257d5b8
change-id: 20260226-arm-setup-c-30f0dccdde71
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list