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

Update MPU alignment checking logic #87

Open
bradjc opened this issue Jul 22, 2022 · 0 comments
Open

Update MPU alignment checking logic #87

bradjc opened this issue Jul 22, 2022 · 0 comments

Comments

@bradjc
Copy link
Contributor

bradjc commented Jul 22, 2022

The alignment logic for MPU on cortex-m in tockloader only checks if the app is aligned based on its entire size. However, the cortex-m mpu code includes more logic for using subregions:

https://github.com/tock/tock/blob/43429fe5866750302bce4758688d4c522cf719bd/arch/cortex-m/src/mpu.rs#L434-L502

Tockloader should replicate the same logic to provide a more accurate warning for apps which are not aligned to their entire size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant