Skip to content

ARM: Avoid to clear bss multiple times

Sascha Hauer barebox 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20260226-arm-setup-c-30f0dccdde71

Versions newest first

  1. v2 Latest2 patches 22 repliesApplied
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- Avoid to put the information if BSS is cleared into the BSS (Ahmad)
- Link to v1: https://lore.barebox.org/[email protected]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2ARM: setupc_32: remove relocation code from setup_carch/arm/cpu/setupc_32.S+5 -223 replies
2/2ARM: setup_c: avoid clearing BSS twicearch/arm/cpu/setupc_32.S arch/arm/cpu/setupc_64.S+25 -417 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchClaude Opus 4.6Ahmad Fatoum
1/2Co-Authored-By R-b
2/2Co-Authored-By Co-Authored-By R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] ARM: Avoid to clear bss multiple times

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.

---
Changes in v2:
- Avoid to put the information if BSS is cleared into the BSS (Ahmad)
- Link to v1: https://lore.barebox.org/[email protected]

---
Sascha Hauer (2):
ARM: setupc_32: remove relocation code from setup_c
ARM: setup_c: avoid clearing BSS twice

 arch/arm/cpu/setupc_32.S | 38 ++++++++++++++++----------------------
 arch/arm/cpu/setupc_64.S | 14 ++++++++++++--
 2 files changed, 28 insertions(+), 24 deletions(-)

---
base-commit: bd5518cd7e34861706f87c8ca67b640d6257d5b8
change-id: 20260226-arm-setup-c-30f0dccdde71

Best regards,

Signature · 1 line
Sascha Hauer <[email protected]>