aboutsummaryrefslogtreecommitdiff
path: root/platform/ext/target/musca_b1/Device/Source/device_definition.c
diff options
context:
space:
mode:
authorMate Toth-Pal <mate.toth-pal@arm.com>2019-03-05 16:22:13 +0100
committerMate Toth-Pal <mate.toth-pal@arm.com>2019-07-09 11:49:23 +0200
commit14c29d04694d6bdbee62462b2b580e9fdb6efa8d (patch)
tree70696d49d090cc0254bb719a6d61dd0a439a2855 /platform/ext/target/musca_b1/Device/Source/device_definition.c
parentd94f45fcb3a9e944b607078407bbf64e5c881195 (diff)
downloadtrusted-firmware-m-14c29d04694d6bdbee62462b2b580e9fdb6efa8d.tar.gz
Test: Add testcases for IRQ handling
This patch contains a test cases exercising the secure IRQ handling feature of TF-M. Details of the change: * Add documentation on the tests * Create new service which handles timer0 interrupts * Link timer0 driver structures to IRQ test service * Implement the testcases in the positive test suite, the new IRQ test service and in TFM_SP_CORE_TEST_2 Change-Id: If7e3d1b57eac4de9ff6e01f0b04efd04bc443545 Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
Diffstat (limited to 'platform/ext/target/musca_b1/Device/Source/device_definition.c')
-rw-r--r--platform/ext/target/musca_b1/Device/Source/device_definition.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/platform/ext/target/musca_b1/Device/Source/device_definition.c b/platform/ext/target/musca_b1/Device/Source/device_definition.c
index b942d290d9..c392f1cc7f 100644
--- a/platform/ext/target/musca_b1/Device/Source/device_definition.c
+++ b/platform/ext/target/musca_b1/Device/Source/device_definition.c
@@ -369,12 +369,15 @@ struct uart_pl011_dev_t UART1_PL011_DEV_NS = {&(UART1_PL011_DEV_CFG_NS),
/** CMSDK Timers driver structures */
#ifdef CMSDK_TIMER0_S
-static const struct timer_cmsdk_dev_cfg_t CMSDK_TIMER0_DEV_CFG_S = {
- .base = MUSCA_B1_CMSDK_TIMER0_S_BASE};
-static struct timer_cmsdk_dev_data_t CMSDK_TIMER0_DEV_DATA_S = {
- .is_initialized = 0};
-struct timer_cmsdk_dev_t CMSDK_TIMER0_DEV_S = {&(CMSDK_TIMER0_DEV_CFG_S),
- &(CMSDK_TIMER0_DEV_DATA_S)};
+static const struct timer_cmsdk_dev_cfg_t CMSDK_TIMER0_DEV_CFG_S
+ TFM_LINK_SET_RO_IN_PARTITION_SECTION("TFM_IRQ_TEST_1")
+ = {.base = MUSCA_B1_CMSDK_TIMER0_S_BASE};
+static struct timer_cmsdk_dev_data_t CMSDK_TIMER0_DEV_DATA_S
+ TFM_LINK_SET_RW_IN_PARTITION_SECTION("TFM_IRQ_TEST_1")
+ = {.is_initialized = 0};
+struct timer_cmsdk_dev_t CMSDK_TIMER0_DEV_S
+ TFM_LINK_SET_RW_IN_PARTITION_SECTION("TFM_IRQ_TEST_1")
+ = {&(CMSDK_TIMER0_DEV_CFG_S), &(CMSDK_TIMER0_DEV_DATA_S)};
#endif
#ifdef CMSDK_TIMER0_NS
static const struct timer_cmsdk_dev_cfg_t CMSDK_TIMER0_DEV_CFG_NS = {