2015-07-28 22:05:39 +08:00
|
|
|
# Kconfig - ARM core configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 Wind River Systems, Inc.
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2015-07-28 22:05:39 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
config CPU_CORTEX
|
|
|
|
bool
|
|
|
|
# Omit prompt to signify "hidden" option
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This option signifies the use of a CPU of the Cortex family.
|
2015-07-28 22:05:39 +08:00
|
|
|
|
|
|
|
config CPU_CORTEX_M
|
|
|
|
bool
|
|
|
|
# Omit prompt to signify "hidden" option
|
|
|
|
select CPU_CORTEX
|
2016-11-21 00:08:53 +08:00
|
|
|
select ARCH_HAS_CUSTOM_SWAP_TO_MAIN
|
2017-01-14 00:46:53 +08:00
|
|
|
select HAS_CMSIS
|
2017-04-11 00:30:51 +08:00
|
|
|
select HAS_FLASH_LOAD_OFFSET
|
2018-10-12 15:27:28 +08:00
|
|
|
select ARCH_HAS_TRUSTED_EXECUTION if ARM_TRUSTZONE_M
|
2018-09-17 21:03:43 +08:00
|
|
|
select ARCH_HAS_STACK_PROTECTION if ARM_MPU || CPU_CORTEX_M_HAS_SPLIM
|
|
|
|
select ARCH_HAS_USERSPACE if ARM_MPU
|
2018-11-08 06:40:43 +08:00
|
|
|
select ARCH_HAS_NOCACHE_MEMORY_SUPPORT if ARM_MPU && CPU_HAS_ARM_MPU && CPU_CORTEX_M7
|
2015-07-28 22:05:39 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This option signifies the use of a CPU of the Cortex-M family.
|
2015-07-28 22:05:39 +08:00
|
|
|
|
2016-11-26 22:20:15 +08:00
|
|
|
config CPU_HAS_SYSTICK
|
|
|
|
bool
|
|
|
|
# Omit prompt to signify "hidden" option
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This option is enabled when the CPU has systick timer implemented.
|
2016-11-26 22:20:15 +08:00
|
|
|
|
2018-03-12 00:21:47 +08:00
|
|
|
config BUILTIN_STACK_GUARD
|
|
|
|
bool "Thread Stack Guards based on built-in ARM stack limit checking"
|
|
|
|
depends on CPU_CORTEX_M_HAS_SPLIM
|
2018-03-12 05:29:25 +08:00
|
|
|
select THREAD_STACK_INFO
|
2018-03-12 00:21:47 +08:00
|
|
|
help
|
|
|
|
Enable Thread/Interrupt Stack Guards via built-in Stack Pointer
|
|
|
|
limit checking. The functionality must be supported by HW.
|
|
|
|
|
2017-09-26 20:59:35 +08:00
|
|
|
config ARM_STACK_PROTECTION
|
|
|
|
bool
|
|
|
|
default y if HW_STACK_PROTECTION
|
2018-03-12 00:21:47 +08:00
|
|
|
select BUILTIN_STACK_GUARD if CPU_CORTEX_M_HAS_SPLIM
|
2018-09-17 21:03:43 +08:00
|
|
|
select MPU_STACK_GUARD if (!BUILTIN_STACK_GUARD && ARM_MPU)
|
2017-09-26 20:59:35 +08:00
|
|
|
help
|
2018-03-12 00:21:47 +08:00
|
|
|
This option enables either:
|
|
|
|
- The built-in Stack Pointer limit checking, or
|
|
|
|
- the MPU-based stack guard
|
|
|
|
to cause a system fatal error
|
2017-12-13 23:08:21 +08:00
|
|
|
if the bounds of the current process stack are overflowed.
|
2018-03-12 00:21:47 +08:00
|
|
|
The two stack guard options are mutually exclusive. The
|
|
|
|
selection of the built-in Stack Pointer limit checking is
|
|
|
|
prioritized over the MPU-based stack guard.
|
2017-09-26 20:59:35 +08:00
|
|
|
|
2018-03-02 04:15:54 +08:00
|
|
|
config ARM_SECURE_FIRMWARE
|
|
|
|
bool
|
2018-05-22 19:30:59 +08:00
|
|
|
depends on ARMV8_M_SE
|
2018-10-12 15:27:28 +08:00
|
|
|
default y if TRUSTED_EXECUTION_SECURE
|
2018-03-02 04:15:54 +08:00
|
|
|
help
|
2018-05-22 18:00:16 +08:00
|
|
|
This option indicates that we are building a Zephyr image that
|
|
|
|
is intended to execute in Secure state. The option is only
|
|
|
|
applicable to ARMv8-M MCUs that implement the Security Extension.
|
|
|
|
|
2018-03-02 04:15:54 +08:00
|
|
|
This option enables Zephyr to include code that executes in
|
|
|
|
Secure state, as well as to exclude code that is designed to
|
2018-05-22 18:00:16 +08:00
|
|
|
execute only in Non-secure state.
|
2018-03-02 04:15:54 +08:00
|
|
|
|
|
|
|
Code executing in Secure state has access to both the Secure
|
|
|
|
and Non-Secure resources of the Cortex-M MCU.
|
|
|
|
|
|
|
|
Code executing in Non-Secure state may trigger Secure Faults,
|
|
|
|
if Secure MCU resources are accessed from the Non-Secure state.
|
|
|
|
Secure Faults may only be handled by code executing in Secure
|
|
|
|
state.
|
|
|
|
|
2018-05-22 18:15:59 +08:00
|
|
|
config ARM_NONSECURE_FIRMWARE
|
|
|
|
bool
|
|
|
|
depends on !ARM_SECURE_FIRMWARE
|
2018-05-22 19:30:59 +08:00
|
|
|
depends on ARMV8_M_SE
|
2018-10-12 15:27:28 +08:00
|
|
|
default y if TRUSTED_EXECUTION_NONSECURE
|
2018-05-22 18:15:59 +08:00
|
|
|
help
|
|
|
|
This option indicates that we are building a Zephyr image that
|
|
|
|
is intended to execute in Non-Secure state. Execution of this
|
|
|
|
image is triggered by Secure firmware that executes in Secure
|
|
|
|
state. The option is only applicable to ARMv8-M MCUs that
|
|
|
|
implement the Security Extension.
|
|
|
|
|
|
|
|
This option enables Zephyr to include code that executes in
|
|
|
|
Non-Secure state only, as well as to exclude code that is
|
|
|
|
designed to execute only in Secure state.
|
|
|
|
|
|
|
|
Code executing in Non-Secure state has no access to Secure
|
|
|
|
resources of the Cortex-M MCU, and, therefore, it shall avoid
|
|
|
|
accessing them.
|
|
|
|
|
2018-04-03 15:39:43 +08:00
|
|
|
menu "ARM Secure Firmware Options"
|
|
|
|
depends on ARM_SECURE_FIRMWARE
|
|
|
|
|
|
|
|
config ARM_FIRMWARE_HAS_SECURE_ENTRY_FUNCS
|
|
|
|
bool "Secure Firmware has Secure Entry functions"
|
|
|
|
depends on ARM_SECURE_FIRMWARE
|
|
|
|
help
|
|
|
|
Option indicates that ARM Secure Firmware contains
|
|
|
|
Secure Entry functions that may be called from
|
|
|
|
Non-Secure state. Secure Entry functions must be
|
|
|
|
located in Non-Secure Callable memory regions.
|
|
|
|
|
|
|
|
config ARM_NSC_REGION_BASE_ADDRESS
|
|
|
|
hex "ARM Non-Secure Callable Region base address"
|
|
|
|
depends on ARM_FIRMWARE_HAS_SECURE_ENTRY_FUNCS
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Start address of Non-Secure Callable section.
|
|
|
|
|
|
|
|
Notes:
|
|
|
|
- The default value (i.e. when the user does not configure
|
|
|
|
the option explicitly) instructs the linker script to
|
|
|
|
place the Non-Secure Callable section, automatically,
|
|
|
|
inside the .text area.
|
|
|
|
- Certain requirements/restrictions may apply regarding
|
|
|
|
the size and the alignment of the starting address for
|
|
|
|
a Non-Secure Callable section, depending on the available
|
2018-08-29 00:43:47 +08:00
|
|
|
security attribution unit (SAU or IDAU) for a given SOC.
|
2018-04-03 15:39:43 +08:00
|
|
|
|
2018-04-12 20:33:52 +08:00
|
|
|
config ARM_ENTRY_VENEERS_LIB_NAME
|
|
|
|
string "Entry Veneers symbol file"
|
|
|
|
depends on ARM_FIRMWARE_HAS_SECURE_ENTRY_FUNCS
|
|
|
|
default "libentryveneers.a"
|
|
|
|
help
|
|
|
|
Library file to store the symbol table for
|
|
|
|
the entry veneers. The library may be used
|
|
|
|
for building a Non-Secure firmware with
|
|
|
|
access to Secure Entry functions.
|
|
|
|
|
2018-04-03 15:39:43 +08:00
|
|
|
endmenu
|
|
|
|
|
2018-05-27 04:17:11 +08:00
|
|
|
menu "Architecture Floating Point Options"
|
2016-05-16 23:21:02 +08:00
|
|
|
depends on CPU_HAS_FPU
|
|
|
|
|
2016-06-30 03:42:09 +08:00
|
|
|
choice
|
|
|
|
prompt "Floating point ABI"
|
|
|
|
default FP_HARDABI
|
|
|
|
depends on FLOAT
|
|
|
|
|
|
|
|
config FP_HARDABI
|
|
|
|
bool "Floating point Hard ABI"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This option selects the Floating point ABI in which hardware floating
|
|
|
|
point instructions are generated and uses FPU-specific calling
|
|
|
|
conventions
|
2016-06-30 03:42:09 +08:00
|
|
|
|
|
|
|
config FP_SOFTABI
|
|
|
|
bool "Floating point Soft ABI"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This option selects the Floating point ABI in which hardware floating
|
|
|
|
point instructions are generated but soft-float calling conventions.
|
2016-06-30 03:42:09 +08:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2016-05-16 23:21:02 +08:00
|
|
|
endmenu
|
|
|
|
|
2015-07-28 22:05:39 +08:00
|
|
|
source "arch/arm/core/cortex_m/Kconfig"
|
2017-03-16 22:28:35 +08:00
|
|
|
|
|
|
|
if CPU_HAS_MPU
|
|
|
|
source "arch/arm/core/cortex_m/mpu/Kconfig"
|
|
|
|
endif
|
2018-10-12 15:27:28 +08:00
|
|
|
|
|
|
|
if CPU_HAS_TEE
|
|
|
|
source "arch/arm/core/cortex_m/tz/Kconfig"
|
|
|
|
endif
|