arch: arm: aarch32: cortex_m: add z_arm_reserved only if core has SE
If the Cortex-M core does not implement the Security Extension, we should not be adding z_arm_reserved in the corresponding vector table entry. That is because the entry is reserved by the ARM architecture. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
4364f2d455
commit
d3fa2eebb0
1 changed files with 4 additions and 0 deletions
|
@ -51,11 +51,15 @@ SECTION_SUBSEC_FUNC(exc_vector_table,_vector_table_section,_vector_table)
|
|||
.word z_arm_mpu_fault
|
||||
.word z_arm_bus_fault
|
||||
.word z_arm_usage_fault
|
||||
#if defined(CONFIG_ARMV8_M_SE)
|
||||
#if defined(CONFIG_ARM_SECURE_FIRMWARE)
|
||||
.word z_arm_secure_fault
|
||||
#else
|
||||
.word z_arm_reserved
|
||||
#endif /* CONFIG_ARM_SECURE_FIRMWARE */
|
||||
#else
|
||||
.word 0
|
||||
#endif /* CONFIG_ARMV8_M_SE */
|
||||
.word 0
|
||||
.word 0
|
||||
.word 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue