All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] video:cache:fix: Proper buffer alignment for lcd subsystem
@ 2013-01-07  9:23 Lukasz Majewski
  2013-01-07  9:23 ` [U-Boot] [PATCH 2/2] video:cache:fix:trats: Enable dcache flush for TRATS board's LCD subsystem Lukasz Majewski
  2013-01-08  1:07 ` [U-Boot] [PATCH 1/2] video:cache:fix: Proper buffer alignment for lcd subsystem Simon Glass
  0 siblings, 2 replies; 8+ messages in thread
From: Lukasz Majewski @ 2013-01-07  9:23 UTC (permalink / raw)
  To: u-boot

This commit makes the video subsystem code cache aware.
Memory allocated for decompressed BMP memory is now cache line aligned.

Tested-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Anatolij Gustschin <agust@denx.de>
---
 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;
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-01-08 14:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-07  9:23 [U-Boot] [PATCH 1/2] video:cache:fix: Proper buffer alignment for lcd subsystem Lukasz Majewski
2013-01-07  9:23 ` [U-Boot] [PATCH 2/2] video:cache:fix:trats: Enable dcache flush for TRATS board's LCD subsystem Lukasz Majewski
2013-01-08  0:55   ` Minkyu Kang
2013-01-08  1:08   ` Simon Glass
2013-01-08  9:43   ` Minkyu Kang
2013-01-08  1:07 ` [U-Boot] [PATCH 1/2] video:cache:fix: Proper buffer alignment for lcd subsystem Simon Glass
2013-01-08  8:28   ` Lukasz Majewski
2013-01-08 14:54     ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.