zephyr/subsys/mem_mgmt/Kconfig
Carlo Caione 09fd6b6ea5 mem_mgmt: Add a memory attributes memory allocator
Using this new library it is now possible to leverage the memory
attribute property 'zephyr,memory-attr' to define and create a set of
memory heaps from which the user can allocate memory from with certain
attributes / capabilities.

When the CONFIG_MEM_ATTR_HEAP option is set, every region marked with
one of the memory attributes listed in
include/zephyr/dt-bindings/memory-attr/memory-attr-sw.h is added to a
pool of memory heaps used for dynamic allocation of memory buffers with
certain attributes.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2023-11-27 19:56:48 +01:00

20 lines
716 B
Plaintext

# Copyright (c) 2023 Carlo Caione <ccaione@baylibre.com>
# SPDX-License-Identifier: Apache-2.0
config MEM_ATTR
bool "Memory Attributes management library"
default y if ARM_MPU
help
Enable a small library to manage the memory regions defined in the DT
with a `zephyr,memory-attr` property. This library builds at build
time an array of the memory regions defined in the DT that can be
probed at run-time using several helper functions. Set to `N` if
unsure to save RODATA space.
config MEM_ATTR_HEAP
bool "Memory Attributes heap allocator"
depends on MEM_ATTR
help
Enable an heap allocator based on memory attributes to dynamically
allocate memory from DeviceTree defined memory regions.