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

FreeRTOS Avoid mem mapping in MPU for region mapped #284

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

rajimoha
Copy link
Contributor

@rajimoha rajimoha commented Feb 1, 2024

FreeRTOS patch for Avoiding memory mapping in MPU config table for region that are already mapped by bsp and no change in attribute property

@tnmysh tnmysh requested review from edmooring and arnopo February 2, 2024 17:49
@arnopo arnopo requested a review from tnmysh February 7, 2024 13:41
Copy link
Contributor

@edmooring edmooring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to fix the formatting issues as well as address my comment.

Xil_GetMPUConfig(mpu_config);

for (cnt = 0; (cnt < MAX_POSSIBLE_MPU_REGS) &&
(mpu_config[cnt].flags & XMPU_VALID_REGION); cnt++){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This loop will terminate early if the MPU register mappings are sparse. If registers 0, 1, and 3 have valid regions, but 2 does not, 3 will be skipped.

I think this part of the test should be moved into the loop as an if() continue statement.

@rajimoha
Copy link
Contributor Author

@edmooring changes done.. ping for review

Copy link
Contributor

@edmooring edmooring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to go.

Copy link
Contributor

@arnopo arnopo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commit message format to fix

FreeRTOS patch for Avoiding memory mapping in MPU config table for region
that are already mapped by bsp and no change in attribute property

Signed-off-by: Rajiv Mohan <rajiv.mohan@amd.com>
@rajimoha
Copy link
Contributor Author

@arnopo fixed the commit msg format issue.

@arnopo arnopo merged commit 5d93a3c into OpenAMP:main Feb 19, 2024
3 of 4 checks passed
@arnopo arnopo added this to the Release V2024.04 milestone Feb 19, 2024
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

Successfully merging this pull request may close these issues.

3 participants