-
Notifications
You must be signed in to change notification settings - Fork 8.2k
boards: qemu_arc: fix of MPU regions setup for !XIP config #46775
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
Conversation
|
From security point of view, I don't like enabling execute permissions for the full SRAM. How is this done for other QEMU targets? Can we have two SRAM regions, one for code and one for data? |
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
15e7fa4 to
61134bb
Compare
|
Hi colleagues, I made changes in the follow way (divide SRAM into two parts) because of issue with linker script.
Both of that solutions requires deep modification of the linker script which I tried to avoid. Regards, Nikolay |
61134bb to
c10c91d
Compare
617542b to
c823e52
Compare
7cd34cd to
f2a8d09
Compare
f2a8d09 to
b81cc35
Compare
evgeniy-paltsev
left a comment
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.
Hi @kokas-a,
LGTM, few minor polishing requested.
I've tested this on qemu_arc_hs with XIP=n - all tests passing.
b81cc35 to
d6feefb
Compare
Add some changes to ARC linker script. They make correct alignment for ROMable region. Now regions borders are aligned with respect to MPU settings. Signed-off-by: Nikolay Agishev <[email protected]>
f696a5c
d6feefb to
f696a5c
Compare
In case if Zephyr is configured with CONFIG_XIP=n it linked into SRAM. So RAM region should have EXECUTE permission.
Fixes: #38880