-
Notifications
You must be signed in to change notification settings - Fork 171
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
Conversation
There was a problem hiding this 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.
lib/system/freertos/xlnx/sys.c
Outdated
Xil_GetMPUConfig(mpu_config); | ||
|
||
for (cnt = 0; (cnt < MAX_POSSIBLE_MPU_REGS) && | ||
(mpu_config[cnt].flags & XMPU_VALID_REGION); cnt++){ |
There was a problem hiding this comment.
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.
18f7d5b
to
d5c2c33
Compare
@edmooring changes done.. ping for review |
There was a problem hiding this 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.
There was a problem hiding this 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
d5c2c33
to
0c64c14
Compare
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>
0c64c14
to
228aa5f
Compare
@arnopo fixed the commit msg format issue. |
FreeRTOS patch for Avoiding memory mapping in MPU config table for region that are already mapped by bsp and no change in attribute property