Sansa AMS: Centralise mapping of RAM and IRAM in as3525.h via #defines. This will hopefully make ongoing mmu work easier as less places need to be changed.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21000 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-05-20 21:09:53 +00:00
parent fba4be213f
commit 4633446517
5 changed files with 56 additions and 39 deletions

View file

@ -1,18 +1,22 @@
#include "config.h"
#include "cpu.h"
ENTRY(start)
OUTPUT_FORMAT(elf32-littlearm)
OUTPUT_ARCH(arm)
STARTUP(target/arm/crt0.o)
#define DRAMSIZE (MEMORYSIZE * 0x100000)
/*
No need for DRAM in our bootloader
#define DRAMSIZE (MEMORYSIZE * 0x100000) - TTB_SIZE
#define DRAMORIG 0x30000000
#define IRAMORIG 0
*/
#define IRAMORIG 0x81000000
#define IRAMSIZE 0x50000
MEMORY
{
DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
/*DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE*/
IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
}