From d40db1901ef33bb9d068efd871c1c1e42d04175f Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 23 Oct 2007 11:34:11 +0000 Subject: Fix the FRAME offset calculation on Gigabeat (m:robe 500 too?). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15278 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/s3c2440.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware') diff --git a/firmware/export/s3c2440.h b/firmware/export/s3c2440.h index e43dd7688d..0e802b5c0e 100644 --- a/firmware/export/s3c2440.h +++ b/firmware/export/s3c2440.h @@ -230,7 +230,7 @@ /*#define FRAME ( (short *) 0x31E00000 ) */ /* LCD Frame buffer - Firmware Address */ /* must be 16Kb (0x4000) aligned */ #define TTB_BASE ((unsigned int *)(0x30000000 + (32*1024*1024) - TTB_SIZE)) /* End of memory */ -#define FRAME ((short *) (TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */ +#define FRAME ((short *) ((char *)TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */ /* NAND Flash */ #define NFCONF (*(volatile int *)0x4E000000) /* NAND flash configuration */ -- cgit v1.2.3