mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
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:
committed by
Xiang Xiao
parent
79e9347551
commit
af5e0c620f
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user