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
|
|
|
|
default n
|
|
|
|
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
|
|
|
|
default n
|
|
|
|
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
|
2017-05-12 04:37:01 +08:00
|
|
|
select HAS_DTS
|
2017-09-26 20:59:35 +08:00
|
|
|
select ARCH_HAS_STACK_PROTECTION if ARM_CORE_MPU
|
2018-01-25 15:10:44 +08:00
|
|
|
select ARCH_HAS_USERSPACE if ARM_USERSPACE
|
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
|
|
|
|
default n
|
|
|
|
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
|
|
|
|
2017-09-26 20:59:35 +08:00
|
|
|
config ARM_STACK_PROTECTION
|
|
|
|
bool
|
|
|
|
default y if HW_STACK_PROTECTION
|
|
|
|
select MPU_STACK_GUARD if ARM_CORE_MPU
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This option enables MPU stack guard to cause a system fatal error
|
|
|
|
if the bounds of the current process stack are overflowed.
|
2017-09-26 20:59:35 +08:00
|
|
|
|
|
|
|
config ARM_USERSPACE
|
|
|
|
bool
|
2018-01-25 15:10:44 +08:00
|
|
|
default n
|
2017-09-26 20:59:35 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This option enables APIs to drop a thread's privileges, supporting
|
|
|
|
user-level threads that are protected from each other and from
|
|
|
|
crashing the kernel.
|
2017-09-26 20:59:35 +08:00
|
|
|
|
2017-11-24 06:43:54 +08:00
|
|
|
menu "Architectue 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"
|
|
|
|
depends on FLOAT
|
|
|
|
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"
|
|
|
|
depends on FLOAT
|
|
|
|
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
|
|
|
if CPU_CORTEX_M
|
|
|
|
source "arch/arm/core/cortex_m/Kconfig"
|
|
|
|
endif
|
2017-03-16 22:28:35 +08:00
|
|
|
|
|
|
|
if CPU_HAS_MPU
|
|
|
|
source "arch/arm/core/cortex_m/mpu/Kconfig"
|
|
|
|
endif
|