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:
Sudan Landge 2025-05-27 11:37:32 +01:00 committed by Dan Kalowsky
commit feb8f7766e
6 changed files with 33 additions and 0 deletions

View file

@ -17,6 +17,7 @@ supported:
- gpio - gpio
testing: testing:
default: true default: true
timeout_multiplier: 4
ignore_tags: ignore_tags:
- drivers - drivers
- bluetooth - bluetooth

View file

@ -9,3 +9,4 @@ tests:
platform_exclude: platform_exclude:
- mps3/corstone310/an555 - mps3/corstone310/an555
- mps3/corstone310/fvp - mps3/corstone310/fvp
- mps4/corstone320/fvp

View file

@ -8,3 +8,4 @@ project(arm_mpu_pxn)
target_sources(app PRIVATE src/main.c) 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_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_MPS3_CORSTONE310 RAM_SECTIONS mps3_corstone310.ld)
zephyr_linker_sources_ifdef(CONFIG_SOC_MPS4_CORSTONE320 RAM_SECTIONS mps4_corstone320.ld)

View 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)

View 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) )>;
};
};

View file

@ -7,6 +7,7 @@ common:
- mps3/corstone300/an547 - mps3/corstone300/an547
- mps3/corstone300/fvp - mps3/corstone300/fvp
- mps3/corstone310/fvp - mps3/corstone310/fvp
- mps4/corstone320/fvp
tests: tests:
# To verify that region marked with PXN attribute can be executed from unprivileged code # To verify that region marked with PXN attribute can be executed from unprivileged code
# and cannot be executed from privileged code # and cannot be executed from privileged code