Added ST-RAM and FastRAM symbols.

This commit is contained in:
Vincent Rivière
2012-11-07 21:16:19 +00:00
parent 49aa824952
commit 262c9c13bf
2 changed files with 10 additions and 1 deletions

View File

@@ -10,10 +10,19 @@ SECTIONS {
/* Init CS0 (BootFLASH @ E000_0000 - E07F_FFFF 8Mbytes) */ /* Init CS0 (BootFLASH @ E000_0000 - E07F_FFFF 8Mbytes) */
___BOOT_FLASH = TARGET_ADDRESS; ___BOOT_FLASH = TARGET_ADDRESS;
___BOOT_FLASH_SIZE = 0x00800000; ___BOOT_FLASH_SIZE = 0x00800000;
/* SDRAM Initialization @ 0000_0000 - 1FFF_FFFF 512Mbytes */ /* SDRAM Initialization @ 0000_0000 - 1FFF_FFFF 512Mbytes */
___SDRAM = 0x00000000; ___SDRAM = 0x00000000;
___SDRAM_SIZE = 0x20000000; ___SDRAM_SIZE = 0x20000000;
/* ST-RAM */
__STRAM = ___SDRAM;
__STRAM_END = _tos_base;
/* FastRAM */
__FASTRAM = 0x10000000;
__FASTRAM_END = _Bas_base;
/* Flash components */ /* Flash components */
__FIRETOS = 0xe0400000; __FIRETOS = 0xe0400000;
__EMUTOS = 0xe0600000; __EMUTOS = 0xe0600000;

View File

@@ -389,7 +389,7 @@ access_mmu:
btst #1,d0 btst #1,d0
bne bus_error bne bus_error
move.l MCF_MMU_MMUAR,d0 move.l MCF_MMU_MMUAR,d0
cmp.l #_Bas_base,d0 // max User RAM Bereich cmp.l #__FASTRAM_END,d0 // max User RAM Bereich
bge bus_error // grösser -> bus error bge bus_error // grösser -> bus error
bra _mmutr_miss bra _mmutr_miss
bus_error: bus_error: