lvgl: mem: align the memory used for the private sys heap
Improve efficiency by introducing the 8-byte alignment of the private heap. Suggested-by: Nicolas Pitre <npitre@baylibre.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
This commit is contained in:
parent
595131c2d0
commit
b2f1bbed88
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
|||
#define HEAP_BYTES (CONFIG_LVGL_MEM_POOL_MAX_SIZE * \
|
||||
CONFIG_LVGL_MEM_POOL_NUMBER_BLOCKS)
|
||||
|
||||
static char lvgl_heap_mem[HEAP_BYTES];
|
||||
static char lvgl_heap_mem[HEAP_BYTES] __aligned(8);
|
||||
static struct sys_heap lvgl_heap;
|
||||
|
||||
void *lvgl_malloc(size_t size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue