-
Notifications
You must be signed in to change notification settings - Fork 8.1k
arch: arm: mpu: move MPU memory configuration header #97934
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
Open
ibirnbaum
wants to merge
17
commits into
zephyrproject-rtos:main
Choose a base branch
from
ibirnbaum:arch_arm_mpu_mem_cfg_header
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
arch: arm: mpu: move MPU memory configuration header #97934
ibirnbaum
wants to merge
17
commits into
zephyrproject-rtos:main
from
ibirnbaum:arch_arm_mpu_mem_cfg_header
+19
−19
Conversation
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
JarmouniA
reviewed
Oct 20, 2025
Move the helper file arm_mpu_mem_cfg.h, which translates the values of the Kconfig symbols CONFIG_FLASH_SIZE and CONFIG_SRAM_SIZE to size definitions to be used during MPU setup, from a Cortex-M-specific include directory to the Cortex-agnostic zephyr/arch/arm/mpu directory, as: - the contents of this header file are not dependent on the target being an ARMv7M, only ARMv8M is excluded, but the contents are identical for the ARMv7/8 Cortex-R MPU implementation, - the header file zephyr/arch/arm/mpu/arm_mpu.h, included within arm_mpu_mem_cfg.h, is also compatible with both Cortex-M and Cortex-R, the distinction between the two implementations takes place at an even lower level, - several ARMv7/8 Cortex-R targets now reference this header file in their MPU region setup (Xilinx ZynqMP, TI K3, Renode cortex_r8_virtual) while so far referencing it in an ARMv7 Cortex-M-specific include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
Update include of header file arm_mpu_mem_cfg.h which has been moved to a Cortex-M/-R-agnostic include directory. Signed-off-by: Immo Birnbaum <[email protected]>
ca10cc7
to
b362acf
Compare
|
JarmouniA
approved these changes
Oct 20, 2025
glneo
approved these changes
Oct 21, 2025
wearyzen
approved these changes
Oct 21, 2025
cyliangtw
approved these changes
Oct 22, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Result of a discussion in #96689.
Move the helper file arm_mpu_mem_cfg.h, which translates the values of the Kconfig symbols CONFIG_FLASH_SIZE and CONFIG_SRAM_SIZE to size definitions to be used during region MPU setup, from a Cortex-M-specific include directory to the Cortex-agnostic zephyr/arch/arm/mpu directory, as:
Includes updated includes for all SoCs/boards referencing this header file.