summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-10-23 11:34:11 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-10-23 11:34:11 +0000
commitd40db1901ef33bb9d068efd871c1c1e42d04175f (patch)
tree7284aaf36b487c9de8092261063311ca949b8ad3 /firmware
parentd7adb152a94855ee156cf9e5ef975b1cfda819ff (diff)
downloadrockbox-d40db1901ef33bb9d068efd871c1c1e42d04175f.tar.gz
rockbox-d40db1901ef33bb9d068efd871c1c1e42d04175f.zip
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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/s3c2440.h2
1 files changed, 1 insertions, 1 deletions
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 */