2017-08-15 12:20:42 +08:00
|
|
|
# Kconfig - Memory Protection Unit (MPU) configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017 Synopsys
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
config ARC_MPU_VER
|
|
|
|
int
|
|
|
|
prompt "ARC MPU version"
|
|
|
|
range 2 4
|
|
|
|
default 2
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
ARC MPU has several versions. For MPU v2, the minimum region is 2048 bytes;
|
|
|
|
For MPU v3, the minimum region is 32 bytes
|
2017-08-15 12:20:42 +08:00
|
|
|
|
|
|
|
config ARC_CORE_MPU
|
|
|
|
bool "ARC Core MPU functionalities"
|
|
|
|
depends on CPU_HAS_MPU
|
|
|
|
default n
|
|
|
|
help
|
2017-08-16 16:59:54 +08:00
|
|
|
ARC core MPU functionalities
|
2017-08-15 12:20:42 +08:00
|
|
|
|
|
|
|
config MPU_STACK_GUARD
|
|
|
|
bool "Thread Stack Guards"
|
2017-08-16 16:59:54 +08:00
|
|
|
depends on ARC_CORE_MPU && !ARC_STACK_CHECKING
|
2017-08-15 12:20:42 +08:00
|
|
|
default n
|
|
|
|
help
|
2017-08-16 16:59:54 +08:00
|
|
|
Enable thread stack guards via MPU. ARC supports built-in stack protection.
|
2017-08-17 05:16:02 +08:00
|
|
|
If your core supports that, it is preferred over MPU stack guard
|
2017-08-15 12:20:42 +08:00
|
|
|
|
|
|
|
config ARC_MPU
|
|
|
|
bool "ARC MPU Support"
|
|
|
|
depends on CPU_HAS_MPU
|
|
|
|
select ARC_CORE_MPU
|
2018-02-01 16:36:47 +08:00
|
|
|
select THREAD_STACK_INFO
|
2018-02-12 19:29:54 +08:00
|
|
|
select MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT if ARC_MPU_VER = 2
|
2017-08-15 12:20:42 +08:00
|
|
|
default n
|
|
|
|
help
|
2017-11-29 17:42:00 +08:00
|
|
|
Target has ARC MPU (currently only works for EMSK 2.2/2.3 ARCEM7D)
|