Revert "mm_heap: double malloced memory default alignment (4 -> 8, 8 -> 16)"

This reverts commit 3e971d2e6d.
This commit is contained in:
wangmingrong1 2025-01-08 15:38:13 +08:00 committed by Xiang Xiao
parent 00794b92c4
commit 11d54b34a7
2 changed files with 2 additions and 2 deletions

View file

@ -157,7 +157,7 @@
#endif
#if CONFIG_MM_DEFAULT_ALIGNMENT == 0
# define MM_ALIGN (2 * sizeof(uintptr_t))
# define MM_ALIGN sizeof(uintptr_t)
#else
# define MM_ALIGN CONFIG_MM_DEFAULT_ALIGNMENT
#endif

View file

@ -62,7 +62,7 @@ config MM_KERNEL_HEAPSIZE
config MM_DEFAULT_ALIGNMENT
int "Memory default alignment in bytes"
default 0
default 8
range 0 64
---help---
The memory default alignment in bytes, if this value is 0, the real