From 9762ddee6ece3e18b1bfb4b57d1d0cb44a3414ab Mon Sep 17 00:00:00 2001 From: lijianjun Date: Tue, 11 Jun 2024 16:55:45 +0800 Subject: [PATCH] add mm_uninitialize empty implementation for sim Signed-off-by: lijianjun Signed-off-by: Neo Xu --- arch/sim/src/sim/sim_heap.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/sim/src/sim/sim_heap.c b/arch/sim/src/sim/sim_heap.c index a3ccb2bb40..a1e9b0842f 100644 --- a/arch/sim/src/sim/sim_heap.c +++ b/arch/sim/src/sim/sim_heap.c @@ -231,6 +231,31 @@ struct mm_heap_s *mm_initialize(const char *name, return heap; } +/**************************************************************************** + * Name: mm_uninitialize + * + * Description: + * Uninitialize the selected heap data structures + * + * Input Parameters: + * heap - The selected heap + * + * Returned Value: + * None + * + * Assumptions: + * + ****************************************************************************/ + +void mm_uninitialize(struct mm_heap_s *heap) +{ +#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMINFO) + procfs_unregister_meminfo(&heap->mm_procfs); +#endif + mm_free_delaylist(heap); + host_free(heap); +} + /**************************************************************************** * Name: mm_addregion *