09fd6b6ea5
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>
20 lines
716 B
Plaintext
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.
|