arch/sim: fix compile break when using mallinfo_task with custom mm manager

/usr/bin/ld: nuttx.rel: in function `mallinfo_task':
nuttx/mm/umm_heap/umm_mallinfo.c:67: undefined reference to `mm_mallinfo_task'

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2023-01-17 10:47:14 +08:00 committed by Xiang Xiao
parent 154bb93c45
commit 8101978765

View File

@ -388,6 +388,21 @@ int mm_mallinfo(struct mm_heap_s *heap, struct mallinfo *info)
return 0;
}
/****************************************************************************
* Name: mm_mallinfo_task
*
* Description:
* mallinfo_task returns a copy of updated current task's heap information.
*
****************************************************************************/
int mm_mallinfo_task(struct mm_heap_s *heap, struct mallinfo_task *info)
{
info->aordblks = 0;
info->uordblks = 0;
return 0;
}
/****************************************************************************
* Name: mm_memdump
*