diff options
| author | Bernard Xiong <[email protected]> | 2021-06-12 11:56:52 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-12 11:56:52 +0800 |
| commit | 2be1cb420f8d40a8c0d440941e1b0e46f327ef60 (patch) | |
| tree | 60ed00b65f9071c0540d6346de66919a3412fab0 /src/memheap.c | |
| parent | a52e147ceab7df3e2fef29498ecfd27bbb4e0cf3 (diff) | |
| parent | fa1f1ef485734d990f9a5aecb001d3a0aa0eb59a (diff) | |
Merge pull request #4788 from yangjie11/memheap
[src] add RT_WEAK for rt_malloc_align,rt_free_align
Diffstat (limited to 'src/memheap.c')
| -rw-r--r-- | src/memheap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/memheap.c b/src/memheap.c index d3ad6d2c36..779988e92f 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", |
