Skip to content

Commit

Permalink
[src] Fix the issue of starting address misalignment (#8190)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhkag authored Oct 26, 2023
1 parent 6b161bf commit ad9cbf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kservice.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit ad9cbf3

Please sign in to comment.