提交 bf4cee28 编写于 作者: A arvinzzz

feature: L0支持厂商自定义malloc相关接口

    可通过在//kernel/liteos_m下make menuconfig配置

close: #I5YBPE
Signed-off-by: Narvinzzz <zhaotianyu9@huawei.com>
Change-Id: I7533cc9148a4211f18186795935c1978f78e6548
上级 6ece17fe
......@@ -33,6 +33,7 @@
#include "los_config.h"
#include "los_memory.h"
#ifdef LOSCFG_LIBC_ICCARM_MALLOC
void *calloc(size_t nitems, size_t size)
{
size_t real_size;
......@@ -105,3 +106,4 @@ void *realloc(void *ptr, size_t size)
return LOS_MemRealloc(OS_SYS_MEM_ADDR, ptr, size);
}
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册