From 6f28d9750c7e601900ff7dc2a2d570af1e15a332 Mon Sep 17 00:00:00 2001 From: Jack Ren Date: Sat, 17 Mar 2012 17:16:48 +0800 Subject: [PATCH] x86: customize the malloced address to be 16-byte aligned That can gain better memory performance than 8-byte alignment Change-Id: Ibcc5bf7b96ed10166038357dd0c86c9171768f3e Signed-off-by: Jack Ren Signed-off-by: Bruce Beare --- target/board/generic_x86/BoardConfig.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/board/generic_x86/BoardConfig.mk b/target/board/generic_x86/BoardConfig.mk index c62b0a457..35a55201f 100644 --- a/target/board/generic_x86/BoardConfig.mk +++ b/target/board/generic_x86/BoardConfig.mk @@ -18,6 +18,9 @@ BOARD_USES_GENERIC_AUDIO := true # no hardware camera USE_CAMERA_STUB := true +# customize the malloced address to be 16-byte aligned +BOARD_MALLOC_ALIGNMENT := 16 + # Set /system/bin/sh to ash, not mksh, to make sure we can switch back. TARGET_SHELL := ash