Skip to content
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

Ensure proper use of DSB/ISB #4719

Open
cepetr opened this issue Mar 3, 2025 · 0 comments
Open

Ensure proper use of DSB/ISB #4719

cepetr opened this issue Mar 3, 2025 · 0 comments
Labels
code Code improvements

Comments

@cepetr
Copy link
Contributor

cepetr commented Mar 3, 2025

According to the following ARM documentation: https://developer.arm.com/documentation/107565/0101/Memory-system/Memory-barriers/When-do-you-need-a-DSB-followed-by-an-ISB-,

we should use DSB/ISB instructions after enabling the FPU by writing to SCB->CPACR (in startup_init.c) and switching VTOR by setting SCB->VTOR (insys_utils.c).

It seems that this is not absolutely critical, but we should align with ARM’s recommendations.

@cepetr cepetr added the code Code improvements label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Code improvements
Projects
Status: No status
Development

No branches or pull requests

1 participant