tests: update for MPS4
MPS4, similar to MPS3 Corstone-310, splits code between DTCM and SRAM and thus requires similar handling. Signed-off-by: Sudan Landge <sudan.landge@arm.com>
This commit is contained in:
parent
97c501f0f3
commit
feb8f7766e
6 changed files with 33 additions and 0 deletions
|
@ -17,6 +17,7 @@ supported:
|
|||
- gpio
|
||||
testing:
|
||||
default: true
|
||||
timeout_multiplier: 4
|
||||
ignore_tags:
|
||||
- drivers
|
||||
- bluetooth
|
||||
|
|
|
@ -9,3 +9,4 @@ tests:
|
|||
platform_exclude:
|
||||
- mps3/corstone310/an555
|
||||
- mps3/corstone310/fvp
|
||||
- mps4/corstone320/fvp
|
||||
|
|
|
@ -8,3 +8,4 @@ project(arm_mpu_pxn)
|
|||
target_sources(app PRIVATE src/main.c)
|
||||
zephyr_linker_sources_ifdef(CONFIG_SOC_MPS3_CORSTONE300 RAM_SECTIONS mps3_corstone300.ld)
|
||||
zephyr_linker_sources_ifdef(CONFIG_SOC_MPS3_CORSTONE310 RAM_SECTIONS mps3_corstone310.ld)
|
||||
zephyr_linker_sources_ifdef(CONFIG_SOC_MPS4_CORSTONE320 RAM_SECTIONS mps4_corstone320.ld)
|
||||
|
|
11
tests/arch/arm/arm_mpu_pxn/mps4_corstone320.ld
Normal file
11
tests/arch/arm/arm_mpu_pxn/mps4_corstone320.ld
Normal file
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* Copyright 2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
SECTION_DATA_PROLOGUE(.customramfunc, , )
|
||||
{
|
||||
*(.customramfunc) * (".customramfunc.*")
|
||||
}
|
||||
GROUP_DATA_LINK_IN(DTCM, DTCM)
|
18
tests/arch/arm/arm_mpu_pxn/mps4_corstone320_fvp.overlay
Normal file
18
tests/arch/arm/arm_mpu_pxn/mps4_corstone320_fvp.overlay
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* Copyright 2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/dt-bindings/memory-attr/memory-attr.h>
|
||||
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
|
||||
|
||||
|
||||
/ {
|
||||
dtcm: dtcm@30000000 {
|
||||
compatible = "zephyr,memory-region";
|
||||
reg = <0x30000000 DT_SIZE_K(32)>;
|
||||
zephyr,memory-region = "DTCM";
|
||||
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM_PXN) )>;
|
||||
};
|
||||
};
|
|
@ -7,6 +7,7 @@ common:
|
|||
- mps3/corstone300/an547
|
||||
- mps3/corstone300/fvp
|
||||
- mps3/corstone310/fvp
|
||||
- mps4/corstone320/fvp
|
||||
tests:
|
||||
# To verify that region marked with PXN attribute can be executed from unprivileged code
|
||||
# and cannot be executed from privileged code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue