forked from msm8916-mainline/lk2nd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm: arm: mmu: Add function to try adding new section mappings
At the moment the MMU is usually used with fixed mappings. In some use case it might be necessary to dynamically map additional memory at runtime. This should be done without affecting the existing mappings (e.g. existing read-only executable memory should not accidentally get mapped read-write). Add a arm_mmu_try_map_sections() function that implements this by checking the existing mappings for mismatches, adds the missing mappings and finally flushes the TLB and cache for the translation table.
- Loading branch information
1 parent
84b7aa1
commit cb75f3b
Showing
2 changed files
with
58 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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 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