1# Physical Memory Protection (PMP) configuration options 2 3# Copyright (c) 2020 BayLibre, SAS 4# SPDX-License-Identifier: Apache-2.0 5 6config PMP_SLOT 7 int "Number of PMP slot" 8 default 8 9 help 10 Depend of the arch/board. Take care to don't put value higher 11 than the Hardware allow you. 12 13config PMP_POWER_OF_TWO_ALIGNMENT 14 bool "Enable power of two alignment" 15 default n 16 select MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT 17 select GEN_PRIV_STACKS 18 help 19 This option will reduce the PMP slot number usage but increase 20 the memory consumption. 21 22config PMP_STACK_GUARD 23 bool "Thread Stack Guard" 24 default n 25 help 26 Enable Thread Stack Guards via PMP 27 28if PMP_STACK_GUARD 29 30config PMP_STACK_GUARD_MIN_SIZE 31 int "Guard size" 32 default 16 33 help 34 Minimum size (and alignment when applicable) of an stack guard 35 region, which guards the stack of a thread. The width of the 36 guard is set to 16 bytes, to accommodate the riscv 37 granularity. 38 39endif # PMP_STACK_GUARD 40