[PATCH v2 2/2] ARM: setup_c: avoid clearing BSS twice

David Picard david.picard at clermont.in2p3.fr
Mon Mar 16 06:21:37 PDT 2026


Hi,

I would like this patches be reverted, since, despite the proposed 
fixes, it prevents the board arch/arm/boards/enclustra-sa2 to boot.

With the option CONFIG_DEBUG_LL enabled, the output is:

lowlevel init done
SDRAM setup...
SDRAM calibration...
done

Then, it hangs.

David

Le 10/03/2026 à 11:44, Sascha Hauer a écrit :
> On Wed, Mar 04, 2026 at 10:05:38AM +0100, Ahmad Fatoum wrote:
>> Hi,
>>
>> On 3/4/26 8:53 AM, Sascha Hauer wrote:
>>> Add a bss_cleared variable that is set after the first call to
>>> setup_c(). On subsequent calls, the BSS clear is skipped to avoid
>>> wiping already-initialized data.
>>>
>>> Co-Authored-By: Claude Opus 4.6 <noreply at anthropic.com>
>>> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
>> Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
>>
>> Minor point below:
>>
>>> +.section .data
>> .data.bss_cleared or is it already in its own section?
> Fixed while applying.
>
> Sascha
>




More information about the barebox mailing list