-
Notifications
You must be signed in to change notification settings - Fork 161
ref(vmpu): Standardize vMPU driver and update armv8-r MPU #216
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
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6d417f5
ref(mpu): keep track of address space cpus directly
josecm 4554e2a
ref(mpu): pass address space to mpu mapping functions
josecm 7a11c72
feat(mem/mpu): add update api to vmpu
miguelafsilva5 6e8b2a7
feat(mem/mpu): add support for locked entries on the vmpu
danielRep eff7ceb
feat(mem/mpu): merge adjacent vmpu regions
danielRep 610eb74
ref(mem/mpu): map boot regions in mem init
danielRep 00541f3
fix(mem/mpu): remove extra memory being mapped
miguelafsilva5 6ebecce
ref(arch/mpu): change mpu driver to comply with new vmpu
miguelafsilva5 1b6a4ed
feat(arch/mpu): add mpu region context switch
miguelafsilva5 21aaa42
fix(mpu): deallocate vMPU entry if mpu fails to insert region
miguelafsilva5 44db8da
fix(mpu): move list initialization to before using the list
miguelafsilva5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
josecm marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| /** | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| * Copyright (c) Bao Project and Contributors. All rights reserved. | ||
| */ | ||
|
|
||
| #ifndef __ARCH_MPU_H__ | ||
| #define __ARCH_MPU_H__ | ||
|
|
||
| #include <bao.h> | ||
| #include <arch/sysregs.h> | ||
| #include <bitmap.h> | ||
| #include <mem.h> | ||
|
|
||
| struct mpu_arch { | ||
| BITMAP_ALLOC(allocated_entries, MPU_ARCH_MAX_NUM_ENTRIES); | ||
| BITMAP_ALLOC(locked_entries, MPU_ARCH_MAX_NUM_ENTRIES); | ||
| }; | ||
|
|
||
| bool mpu_perms_compatible(unsigned long perms1, unsigned long perms2); | ||
|
|
||
| #endif /* __ARCH_MPU_H__ */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,5 +7,5 @@ | |
|
|
||
| void as_arch_init(struct addr_space* as) | ||
| { | ||
| UNUSED_ARG(as); | ||
| as->arch.mpu_entry_mask = 0; | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.