Replace hard coded memory size

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23453 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bob Cousins 2009-10-31 23:35:20 +00:00
parent 4eafd23f42
commit f27b135219

View file

@ -24,9 +24,11 @@
#define LCD_BUFFER_SIZE (320*240*2)
#define TTB_SIZE (0x4000)
/* must be 16Kb (0x4000) aligned */
#define TTB_BASE_ADDR (0x30000000 + (32*1024*1024) - TTB_SIZE)
#define TTB_BASE_ADDR (0x30000000 + (MEMORYSIZE*1024*1024) - TTB_SIZE)
#define LCD_FRAME_ADDR (TTB_BASE_ADDR - LCD_BUFFER_SIZE)
#define TTB_BASE ((unsigned long *)TTB_BASE_ADDR) /* End of memory */
#define FRAME ((unsigned short *)(TTB_BASE_ADDR - LCD_BUFFER_SIZE)) /* Right before TTB */
#define FRAME ((unsigned short *)LCD_FRAME_ADDR) /* Right before TTB */
/* Memory Controllers */