Kconfig: Add kconfig options for module text allocator
Enable it for ESP32.
This commit is contained in:
parent
bf2cfd4b1a
commit
03a916acb8
14
arch/Kconfig
14
arch/Kconfig
@ -213,6 +213,10 @@ config ARCH_NEED_ADDRENV_MAPPING
|
|||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config ARCH_HAVE_MODULE_TEXT
|
||||||
|
bool "Special memory region for dynamic code loading"
|
||||||
|
default n
|
||||||
|
|
||||||
config ARCH_HAVE_MULTICPU
|
config ARCH_HAVE_MULTICPU
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
@ -321,6 +325,16 @@ config ARCH_USE_MPU
|
|||||||
is enabled by other, platform-specific logic. In those cases, this
|
is enabled by other, platform-specific logic. In those cases, this
|
||||||
selection will always be forced.
|
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
|
menuconfig ARCH_ADDRENV
|
||||||
bool "Address environments"
|
bool "Address environments"
|
||||||
default n
|
default n
|
||||||
|
@ -14,6 +14,7 @@ config ARCH_CHIP_ESP32
|
|||||||
select ARCH_FAMILY_LX6
|
select ARCH_FAMILY_LX6
|
||||||
select XTENSA_HAVE_INTERRUPTS
|
select XTENSA_HAVE_INTERRUPTS
|
||||||
select ARCH_HAVE_MULTICPU
|
select ARCH_HAVE_MULTICPU
|
||||||
|
select ARCH_HAVE_MODULE_TEXT
|
||||||
select ARCH_TOOLCHAIN_GNU
|
select ARCH_TOOLCHAIN_GNU
|
||||||
select ARCH_GLOBAL_IRQDISABLE
|
select ARCH_GLOBAL_IRQDISABLE
|
||||||
---help---
|
---help---
|
||||||
|
Loading…
Reference in New Issue
Block a user