From c9b58135112e5e841c43e1990d2c6d8ac2208eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Rivi=C3=A8re?= Date: Wed, 7 Nov 2012 21:16:19 +0000 Subject: [PATCH] Added ST-RAM and FastRAM symbols. --- bas.lk.in | 9 +++++++++ sources/exceptions.S | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bas.lk.in b/bas.lk.in index 8d5bba5..912e4a3 100644 --- a/bas.lk.in +++ b/bas.lk.in @@ -10,10 +10,19 @@ SECTIONS { /* Init CS0 (BootFLASH @ E000_0000 - E07F_FFFF 8Mbytes) */ ___BOOT_FLASH = TARGET_ADDRESS; ___BOOT_FLASH_SIZE = 0x00800000; + /* SDRAM Initialization @ 0000_0000 - 1FFF_FFFF 512Mbytes */ ___SDRAM = 0x00000000; ___SDRAM_SIZE = 0x20000000; + /* ST-RAM */ + __STRAM = ___SDRAM; + __STRAM_END = _tos_base; + + /* FastRAM */ + __FASTRAM = 0x10000000; + __FASTRAM_END = _Bas_base; + /* Flash components */ __FIRETOS = 0xe0400000; __EMUTOS = 0xe0600000; diff --git a/sources/exceptions.S b/sources/exceptions.S index 0231b21..9589eea 100644 --- a/sources/exceptions.S +++ b/sources/exceptions.S @@ -389,7 +389,7 @@ access_mmu: btst #1,d0 bne bus_error 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 bra _mmutr_miss bus_error: