Skip to content

Commit 52a5c08

Browse files
ibirnbaumcarlescufi
authored andcommitted
tests: enable kernel test fatal/exception for aarch32 Cortex-A CPUs
Add consideration of aarch32 Cortex-A CPUs to a test case in which architecture-specific assembly instructions are used in order to explicitly trigger an exception. This test case already considers aarch32 Cortex-R CPUs, the same instruction will be used by Cortex-A CPUs. Signed-off-by: Immo Birnbaum <[email protected]>
1 parent ee7ac70 commit 52a5c08

File tree

1 file changed

+1
-1
lines changed
  • tests/kernel/fatal/exception/src

1 file changed

+1
-1
lines changed

tests/kernel/fatal/exception/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void entry_cpu_exception_extend(void *p1, void *p2, void *p3)
9797

9898
#if defined(CONFIG_ARM64)
9999
__asm__ volatile ("svc 0");
100-
#elif defined(CONFIG_CPU_CORTEX_R)
100+
#elif defined(CONFIG_CPU_CORTEX_R) || defined(CONFIG_CPU_AARCH32_CORTEX_A)
101101
__asm__ volatile ("BKPT");
102102
#elif defined(CONFIG_CPU_CORTEX_M)
103103
__asm__ volatile ("swi 0");

0 commit comments

Comments
 (0)