Rename MODULE_TEXT to TEXT_HEAP as the latter is more generic.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche
2021-06-18 00:47:45 +01:00
committed by Xiang Xiao
parent 79e9347551
commit af5e0c620f
36 changed files with 118 additions and 123 deletions
+1 -1
View File
@@ -1545,7 +1545,7 @@ config MODULE
bool "Enable loadable OS modules"
default n
select LIBC_MODLIB
select ARCH_USE_MODULE_TEXT if ARCH_HAVE_MODULE_TEXT
select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP
---help---
Enable support for loadable OS modules. Default: n
+2 -2
View File
@@ -572,8 +572,8 @@ void nx_start(void)
}
#endif
#ifdef CONFIG_ARCH_USE_MODULE_TEXT
up_module_text_init();
#ifdef CONFIG_ARCH_USE_TEXT_HEAP
up_textheap_init();
#endif
#ifdef CONFIG_MM_IOB
+2 -2
View File
@@ -120,8 +120,8 @@ int rmmod(FAR void *handle)
* and nullify so that the memory cannot be freed again
*/
#if defined(CONFIG_ARCH_USE_MODULE_TEXT)
up_module_text_free((FAR void *)modp->textalloc);
#if defined(CONFIG_ARCH_USE_TEXT_HEAP)
up_textheap_free((FAR void *)modp->textalloc);
#else
kmm_free((FAR void *)modp->textalloc);
#endif