diff options
author | Bob Cousins <bobc@rockbox.org> | 2009-10-31 23:35:20 +0000 |
---|---|---|
committer | Bob Cousins <bobc@rockbox.org> | 2009-10-31 23:35:20 +0000 |
commit | f27b135219eedfec9d629b62b606ee817ec89326 (patch) | |
tree | c0992ab5640ab532b236488c953d6f547d0febd1 /firmware | |
parent | 4eafd23f42272bd55394842e8c691cde0aac3d39 (diff) |
Replace hard coded memory size
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23453 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/s3c2440.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/export/s3c2440.h b/firmware/export/s3c2440.h index b6ba79a34e..da2ea8937f 100644 --- a/firmware/export/s3c2440.h +++ b/firmware/export/s3c2440.h @@ -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 */ |