summaryrefslogtreecommitdiff
path: root/src/memheap.c
diff options
context:
space:
mode:
authoryangjie <[email protected]>2021-06-11 10:00:23 +0800
committeryangjie <[email protected]>2021-06-11 10:00:23 +0800
commitfa1f1ef485734d990f9a5aecb001d3a0aa0eb59a (patch)
tree57aafa16ed32cc0918ff1330cc6dc3820fb5071b /src/memheap.c
parent28847008171ab7423b6b05b7157d3467f1525fda (diff)
[src] add RT_WEAK for rt_malloc_align,rt_free_align
Diffstat (limited to 'src/memheap.c')
-rw-r--r--src/memheap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/memheap.c b/src/memheap.c
index 35a04c14b1..80f27a461f 100644
--- a/src/memheap.c
+++ b/src/memheap.c
@@ -757,6 +757,8 @@ static struct rt_memheap _heap;
void rt_system_heap_init(void *begin_addr, void *end_addr)
{
+ RT_ASSERT((rt_uint32_t)end_addr > (rt_uint32_t)begin_addr);
+
/* initialize a default heap in the system */
rt_memheap_init(&_heap,
"heap",