From 51dbb9b923bc4074cf1412ac71d363ff691e5761 Mon Sep 17 00:00:00 2001 From: wangmingrong1 Date: Wed, 8 Jan 2025 12:40:30 +0800 Subject: [PATCH] mm: default mm align 32->4,64->8 The modification at that time was because of x86-64, but the problem has been fixed elsewhere, and other architectures will not encounter any problems for the time being. Signed-off-by: wangmingrong1 --- include/nuttx/mm/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nuttx/mm/mm.h b/include/nuttx/mm/mm.h index 6d40ae11ebd6d..854c54f34c4a5 100644 --- a/include/nuttx/mm/mm.h +++ b/include/nuttx/mm/mm.h @@ -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