Skip to content

kernel: init: bss clear nocache memory as well #88645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

PetervdPerk-NXP
Copy link
Collaborator

If a variable is tagged as nocache it didn't got zeroed on boot, which could lead some weird behaviour where bss memory is non-zero.

This PR zeroes the nocache region if CONFIG_NOCACHE_MEMORY is enabled

More particurly this fixes peripheral intitialization the S32K344 when doing a functional reset.

If something is tagged as nocache it didn't got cleared, which could
lead some weird behaviour where bss memory is non-zero.

Signed-off-by: Peter van der Perk <[email protected]>
@JarmouniA
Copy link
Collaborator

#87826 fixes this.

@PetervdPerk-NXP
Copy link
Collaborator Author

#87826 fixes this.

#87826 only fixes the data section. This pr handles the bss section.

@kartben kartben merged commit 6b369a3 into zephyrproject-rtos:main Apr 17, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants