Kconfig: Add kconfig options for module text allocator

Enable it for ESP32.
This commit is contained in:
YAMAMOTO Takashi
2020-03-09 13:03:49 +09:00
committed by patacongo
parent bf2cfd4b1a
commit 03a916acb8
2 changed files with 15 additions and 0 deletions
+14
View File
@@ -213,6 +213,10 @@ config ARCH_NEED_ADDRENV_MAPPING
bool
default n
config ARCH_HAVE_MODULE_TEXT
bool "Special memory region for dynamic code loading"
default n
config ARCH_HAVE_MULTICPU
bool
default n
@@ -321,6 +325,16 @@ config ARCH_USE_MPU
is enabled by other, platform-specific logic. In those cases, this
selection will always be forced.
config ARCH_USE_MODULE_TEXT
bool "Enable module text allocator"
default n
depends on ARCH_HAVE_MODULE_TEXT
---help---
This option enable architecture-sepecific memory allocator
for dynamic code loading. For example, ESP32 has a separate memory
regions for instruction and data and the memory region used for
usual malloc doesn't work for instruction.
menuconfig ARCH_ADDRENV
bool "Address environments"
default n