Skip to content

nios2: MPU support #2074

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

Closed
zephyrbot opened this issue Jul 7, 2016 · 2 comments
Closed

nios2: MPU support #2074

zephyrbot opened this issue Jul 7, 2016 · 2 comments
Assignees
Labels
area: Kernel area: NIOS2 NIOS2 Architecture Enhancement Changes/Updates/Additions to existing features priority: low Low impact/importance bug

Comments

@zephyrbot
Copy link
Collaborator

zephyrbot commented Jul 7, 2016

Reported by Andrew Boie:

As a developer, I would like to add MPU support to Zephyr so that I can mark memory regions as instructions, read-only data, or read-write data. This should improve the security of the system in non-XIP scenarios and improve debugging.

From the CPU manual:
When present and enabled, the MPU monitors all Nios II instruction fetches and data memory accesses to protect against errant software execution. The MPU is a hardware facility that system software uses to define memory regions and their associated access permissions. The MPU triggers an exception if software attempts to access a memory region in violation of its permissions, allowing you to intervene and handle the exception as appropriate. The precise exception effectively prevents the illegal access to memory.

The MPU extends the Nios II processor to support user mode and supervisor mode. Typically, system software runs in supervisor mode and end-user applications run in user mode, although all software can run in supervisor mode if desired. System software defines which MPU regions belong to supervisor mode and which belong to user mode.

(Imported from Jira ZEP-533)

@zephyrbot
Copy link
Collaborator Author

by Mark Linkmeyer:

Robert Beatty and Andrew Boie , does this story more appropriately belong with the Memory Protection Unit Support epic (ZEP-1466)?

@zephyrbot zephyrbot added area: Kernel Enhancement Changes/Updates/Additions to existing features labels Sep 23, 2017
@nashif nashif added priority: low Low impact/importance bug and removed priority: medium Medium impact/importance bug priority: low Low impact/importance bug labels Feb 10, 2018
@nashif nashif added the area: NIOS2 NIOS2 Architecture label May 12, 2018
@ManojSubbarao
Copy link

MPU feature is not supported in the current NIOS II soft cpu image. Hence closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Kernel area: NIOS2 NIOS2 Architecture Enhancement Changes/Updates/Additions to existing features priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants