summaryrefslogtreecommitdiffstats
path: root/bootloader/sansa_as3525.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/sansa_as3525.c')
-rw-r--r--bootloader/sansa_as3525.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c
index 4705e2b915..dbe6218d48 100644
--- a/bootloader/sansa_as3525.c
+++ b/bootloader/sansa_as3525.c
@@ -93,8 +93,8 @@ void main(void)
printf("Loading firmware");
- loadbuffer = (unsigned char*)0x30000000; /* DRAM */
- buffer_size = (int)(loadbuffer + (MEM * 0x100000));
+ loadbuffer = (unsigned char*)DRAM_ORIG; /* DRAM */
+ buffer_size = (int)(loadbuffer + (DRAM_SIZE) - TTB_SIZE);
ret = load_firmware(loadbuffer, BOOTFILE, buffer_size);
if(ret < 0)