mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
arch/arm: add support for ARMv8-M Security Extensions
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
015e30a866
commit
206d339b37
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user