[src] Fix the issue of starting address misalignment (#8190)

This commit is contained in:
kk 2023-10-26 20:16:43 +08:00 committed by GitHub
parent 6b161bf3d5
commit ad9cbf3e51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1822,7 +1822,7 @@ rt_weak void rt_system_heap_init(void *begin_addr, void *end_addr)
RT_ASSERT(end_align > begin_align);
/* 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 */
_heap_lock_init();
}