mirror of
https://github.com/apache/nuttx.git
synced 2025-01-12 22:08:35 +08:00
Revert "mm_heap: double malloced memory default alignment (4 -> 8, 8 -> 16)"
This reverts commit 3e971d2e6d
.
This commit is contained in:
parent
00794b92c4
commit
11d54b34a7
2 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_MM_DEFAULT_ALIGNMENT == 0
|
#if CONFIG_MM_DEFAULT_ALIGNMENT == 0
|
||||||
# define MM_ALIGN (2 * sizeof(uintptr_t))
|
# define MM_ALIGN sizeof(uintptr_t)
|
||||||
#else
|
#else
|
||||||
# define MM_ALIGN CONFIG_MM_DEFAULT_ALIGNMENT
|
# define MM_ALIGN CONFIG_MM_DEFAULT_ALIGNMENT
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -62,7 +62,7 @@ config MM_KERNEL_HEAPSIZE
|
||||||
|
|
||||||
config MM_DEFAULT_ALIGNMENT
|
config MM_DEFAULT_ALIGNMENT
|
||||||
int "Memory default alignment in bytes"
|
int "Memory default alignment in bytes"
|
||||||
default 0
|
default 8
|
||||||
range 0 64
|
range 0 64
|
||||||
---help---
|
---help---
|
||||||
The memory default alignment in bytes, if this value is 0, the real
|
The memory default alignment in bytes, if this value is 0, the real
|
||||||
|
|
Loading…
Reference in a new issue