From patchwork Mon Jan 7 09:23:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot, 1/2] video:cache:fix: Proper buffer alignment for lcd subsystem From: =?utf-8?q?=C5=81ukasz_Majewski?= X-Patchwork-Id: 209884 Message-Id: <1357550590-4652-1-git-send-email-l.majewski@samsung.com> To: u-boot@lists.denx.de Cc: Kyungmin Park , Tom Rini Date: Mon, 07 Jan 2013 10:23:09 +0100 This commit makes the video subsystem code cache aware. Memory allocated for decompressed BMP memory is now cache line aligned. Tested-by: Lukasz Majewski Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Cc: Anatolij Gustschin --- common/cmd_bmp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/cmd_bmp.c b/common/cmd_bmp.c index 5a52edd..57f3eb5 100644 --- a/common/cmd_bmp.c +++ b/common/cmd_bmp.c @@ -55,7 +55,7 @@ bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long *lenp) * Decompress bmp image */ len = CONFIG_SYS_VIDEO_LOGO_MAX_SIZE; - dst = malloc(CONFIG_SYS_VIDEO_LOGO_MAX_SIZE); + dst = memalign(CONFIG_SYS_CACHELINE_SIZE, len); if (dst == NULL) { puts("Error: malloc in gunzip failed!\n"); return NULL;