Skip to content

Commit 3d24a07

Browse files
evgeniy-paltsevstephanosio
authored andcommitted
ARC: disallow build for secure configuration with firq
Such configuration isn't supported by HW. Signed-off-by: Eugeniy Paltsev <[email protected]> Signed-off-by: Evgeniy Paltsev <[email protected]>
1 parent c859f30 commit 3d24a07

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

arch/arc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ config ARC_FIRQ
171171
bool "FIRQ enable"
172172
depends on ISA_ARCV2
173173
depends on NUM_IRQ_PRIO_LEVELS > 1
174+
depends on !ARC_HAS_SECURE
174175
default y
175176
help
176177
Fast interrupts are supported (FIRQ). If FIRQ enabled, for interrupts

include/zephyr/arch/arc/arch.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@
7777
#error "Unsupported configuration: ARC_FIRQ_STACK and (RGF_NUM_BANKS < 2)"
7878
#endif
7979

80+
/* In case of ARC 2+2 secure mode enabled the firq are not supported by HW */
81+
#if defined(CONFIG_ARC_FIRQ) && defined(CONFIG_ARC_HAS_SECURE)
82+
#error "Unsupported configuration: ARC_FIRQ and ARC_HAS_SECURE"
83+
#endif
84+
8085
#if defined(CONFIG_SMP) && !defined(CONFIG_MULTITHREADING)
8186
#error "Non-multithreading mode isn't supported on SMP targets"
8287
#endif

0 commit comments

Comments
 (0)