mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Introduce ARCH_HAVE_EXTRA_HEAPS, this config is going to be used for
chips that have multiple separate heaps. For now it's used to enable APIs to initialize the different heaps during the start sequence but can be extended for other purposes that manage those heaps. Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
committed by
Xiang Xiao
parent
db18a12844
commit
0a4982a80e
@@ -754,22 +754,22 @@ uintptr_t pgalloc(uintptr_t brkaddr, unsigned int npages);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: up_textheap_init
|
||||
* Name: up_extraheaps_init
|
||||
*
|
||||
* Description:
|
||||
* Initialize the text heap.
|
||||
* Initialize any extra heap.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_ARCH_USE_TEXT_HEAP)
|
||||
void up_textheap_init(void);
|
||||
#if defined(CONFIG_ARCH_HAVE_EXTRA_HEAPS)
|
||||
void up_extraheaps_init(void);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: up_textheap_memalign
|
||||
*
|
||||
* Description:
|
||||
* Allocate memory from the text heap with the specified alignment.
|
||||
* Allocate memory for text sections with the specified alignment.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@@ -781,7 +781,7 @@ FAR void *up_textheap_memalign(size_t align, size_t size);
|
||||
* Name: up_textheap_free
|
||||
*
|
||||
* Description:
|
||||
* Free memory from the text heap.
|
||||
* Free memory allocated for text sections.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user