mm: support custom the mm alignment and default to be 8

Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
This commit is contained in:
wangbowen6
2022-12-30 16:30:55 +08:00
committed by Xiang Xiao
parent 97b4900c59
commit 70083168f1
12 changed files with 73 additions and 35 deletions
+9
View File
@@ -61,6 +61,15 @@ config MM_KERNEL_HEAPSIZE
user-mode heap. This value may need to be aligned to units of the
size of the smallest memory protection region.
config MM_DFAULT_ALIGNMENT
int "Memory default alignment in bytes"
default 8
range 0 64
---help---
The memory default alignment in bytes, if this value is 0, the real
memory default alignment is equal to sizoef(uintptr), if this value
is not 0, this value must be 2^n and at least sizeof(uintptr).
config MM_SMALL
bool "Small memory model"
default n