mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
mm/mm_heap: add mm_delaylist to mm_heap_s struct
Change-Id: I2ffaec5557bf2dd2021baa6cda84bb5318425caa Signed-off-by: ligd <liguiding@fishsemi.com>
This commit is contained in:
@@ -175,6 +175,12 @@ void mm_initialize(FAR struct mm_heap_s *heap, FAR void *heapstart,
|
||||
heap->mm_nregions = 0;
|
||||
#endif
|
||||
|
||||
#ifdef __KERNEL__
|
||||
/* Initialize mm_delaylist */
|
||||
|
||||
heap->mm_delaylist.flink = NULL;
|
||||
#endif
|
||||
|
||||
/* Initialize the node array */
|
||||
|
||||
memset(heap->mm_nodelist, 0, sizeof(struct mm_freenode_s) * MM_NNODES);
|
||||
|
||||
Reference in New Issue
Block a user