mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: Avoid to clear bss multiple times
@ 2026-02-26 12:23 Sascha Hauer
  2026-02-26 12:23 ` [PATCH 1/2] ARM: setupc_32: remove relocation code from setup_c Sascha Hauer
  2026-02-26 12:23 ` [PATCH 2/2] ARM: setup_c: avoid clearing BSS twice Sascha Hauer
  0 siblings, 2 replies; 4+ messages in thread
From: Sascha Hauer @ 2026-02-26 12:23 UTC (permalink / raw)
  To: BAREBOX; +Cc: Claude Opus 4.6

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@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@pengutronix.de>




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

end of thread, other threads:[~2026-03-02  7:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-26 12:23 [PATCH 0/2] ARM: Avoid to clear bss multiple times Sascha Hauer
2026-02-26 12:23 ` [PATCH 1/2] ARM: setupc_32: remove relocation code from setup_c Sascha Hauer
2026-02-26 12:23 ` [PATCH 2/2] ARM: setup_c: avoid clearing BSS twice Sascha Hauer
2026-03-02  7:01   ` Ahmad Fatoum

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