Fix get_free_heap_size

pull/107/head
xiangbingj 2019-10-29 17:35:33 +08:00
parent 15ca3baf45
commit aa41257ea6
1 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@
#include "sysctl.h"
#include "syslog.h"
#include "util.h"
#include "iomem.h"
/**
* @note System call list
@ -753,5 +754,5 @@ uintptr_t handle_syscall(uintptr_t cause, uintptr_t epc, uintptr_t regs[32], uin
size_t get_free_heap_size(void)
{
return (size_t)(&_heap_end[0] - _heap_cur);
return (size_t)iomem_unused();
}