2020-07-21 21:59:23 +08:00
|
|
|
# Physical Memory Protection (PMP) configuration options
|
|
|
|
|
|
|
|
# Copyright (c) 2020 BayLibre, SAS
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
config PMP_SLOT
|
|
|
|
int "Number of PMP slot"
|
|
|
|
default 8
|
|
|
|
help
|
|
|
|
Depend of the arch/board. Take care to don't put value higher
|
|
|
|
than the Hardware allow you.
|
2020-07-21 22:00:39 +08:00
|
|
|
|
|
|
|
config PMP_POWER_OF_TWO_ALIGNMENT
|
|
|
|
bool "Enable power of two alignment"
|
|
|
|
default n
|
|
|
|
select MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT
|
|
|
|
select GEN_PRIV_STACKS
|
|
|
|
help
|
|
|
|
This option will reduce the PMP slot number usage but increase
|
|
|
|
the memory consumption.
|
|
|
|
|
|
|
|
config PMP_STACK_GUARD
|
|
|
|
bool "Thread Stack Guard"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable Thread Stack Guards via PMP
|
|
|
|
|
|
|
|
if PMP_STACK_GUARD
|
|
|
|
|
|
|
|
config PMP_STACK_GUARD_MIN_SIZE
|
|
|
|
int "Guard size"
|
|
|
|
default 16
|
|
|
|
help
|
|
|
|
Minimum size (and alignment when applicable) of an stack guard
|
|
|
|
region, which guards the stack of a thread. The width of the
|
2021-02-23 15:37:22 +08:00
|
|
|
guard is set to 16 bytes, to accommodate the riscv
|
|
|
|
granularity.
|
2020-07-21 22:00:39 +08:00
|
|
|
|
|
|
|
endif # PMP_STACK_GUARD
|