arch/arm: add support for ARMv8-M Security Extensions

This commit is contained in:
raiden00pl
2023-07-04 13:08:09 +02:00
committed by Alan Carvalho de Assis
parent 015e30a866
commit 206d339b37
3 changed files with 18 additions and 0 deletions
+5
View File
@@ -169,3 +169,8 @@ config ARMV8M_TRUSTZONE_CPU_BITMASK
default 0
---help---
Set Security bitmap for multicore, bit 0 means core 0.
config ARMV8M_CMSE
bool "ARMv8-M Security Extensions"
---help---
Enable ARMv8-M Security Extensions.
+6
View File
@@ -188,4 +188,10 @@ ifeq ($(CONFIG_ARMV8M_STACKCHECK),y)
ARCHOPTIMIZATION += -finstrument-functions -ffixed-r10
endif
# ARMv8-M Security Extensions
ifeq ($(CONFIG_ARMV8M_CMSE),y)
ARCHCPUFLAGS += -mcmse
endif
include $(TOPDIR)/arch/arm/src/common/Toolchain.defs
+7
View File
@@ -472,6 +472,13 @@
# define no_builtin(n)
# endif
/* CMSE extention */
# ifdef CONFIG_ARCH_HAVE_TRUSTZONE
# define cmse_nonsecure_entry __attribute__((cmse_nonsecure_entry))
# define cmse_nonsecure_call __attribute__((cmse_nonsecure_call))
# endif
/* SDCC-specific definitions ************************************************/
#elif defined(SDCC) || defined(__SDCC)