[src] Fix the issue of starting address misalignment (#8190)
This commit is contained in:
parent
6b161bf3d5
commit
ad9cbf3e51
|
@ -1822,7 +1822,7 @@ rt_weak void rt_system_heap_init(void *begin_addr, void *end_addr)
|
||||||
RT_ASSERT(end_align > begin_align);
|
RT_ASSERT(end_align > begin_align);
|
||||||
|
|
||||||
/* Initialize system memory heap */
|
/* Initialize system memory heap */
|
||||||
_MEM_INIT("heap", begin_addr, end_align - begin_align);
|
_MEM_INIT("heap", (void *)begin_align, end_align - begin_align);
|
||||||
/* Initialize multi thread contention lock */
|
/* Initialize multi thread contention lock */
|
||||||
_heap_lock_init();
|
_heap_lock_init();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue