diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-09-12 17:24:45 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-09-12 17:25:07 -0400 |
commit | 8a9f20cd6899d57b9beccacf2276dd018dac0315 (patch) | |
tree | 5a250fb927154f3adaf238fd806f6895431fc2ef /support/ld/maple_native | |
parent | f52af4876b0ffc98055fba237fb01852f1bfaaae (diff) | |
download | librambutan-8a9f20cd6899d57b9beccacf2276dd018dac0315.tar.gz librambutan-8a9f20cd6899d57b9beccacf2276dd018dac0315.zip |
[support/ld] Put Maple Native's heap on external SRAM chip.
Specify _lm_heap_start and _lm_heap_end in Maple Native's linker
scripts to point respectively to beginning and end of FSMC-mapped
external SRAM chip addresses.
Diffstat (limited to 'support/ld/maple_native')
-rw-r--r-- | support/ld/maple_native/flash.ld | 4 | ||||
-rw-r--r-- | support/ld/maple_native/jtag.ld | 4 | ||||
-rw-r--r-- | support/ld/maple_native/ram.ld | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/support/ld/maple_native/flash.ld b/support/ld/maple_native/flash.ld index ad92d10..20326e4 100644 --- a/support/ld/maple_native/flash.ld +++ b/support/ld/maple_native/flash.ld @@ -17,5 +17,9 @@ REGION_ALIAS("REGION_TEXT", rom); REGION_ALIAS("REGION_DATA", ram); REGION_ALIAS("REGION_BSS", ram); +/* Specify heap boundary addresses on the external SRAM chip */ +_lm_heap_start = 0x60000000; +_lm_heap_end = 0x60100000; + INCLUDE common_rom.inc diff --git a/support/ld/maple_native/jtag.ld b/support/ld/maple_native/jtag.ld index d6cf189..73157de 100644 --- a/support/ld/maple_native/jtag.ld +++ b/support/ld/maple_native/jtag.ld @@ -18,4 +18,8 @@ REGION_ALIAS("REGION_TEXT", rom); REGION_ALIAS("REGION_DATA", ram); REGION_ALIAS("REGION_BSS", ram); +/* Specify heap boundary addresses on the external SRAM chip */ +_lm_heap_start = 0x60000000; +_lm_heap_end = 0x60100000; + INCLUDE common_rom.inc diff --git a/support/ld/maple_native/ram.ld b/support/ld/maple_native/ram.ld index b092e54..d38e43c 100644 --- a/support/ld/maple_native/ram.ld +++ b/support/ld/maple_native/ram.ld @@ -17,4 +17,8 @@ REGION_ALIAS("REGION_TEXT", ram); REGION_ALIAS("REGION_DATA", ram); REGION_ALIAS("REGION_BSS", ram); +/* Specify heap boundary addresses on the external SRAM chip */ +_lm_heap_start = 0x60000000; +_lm_heap_end = 0x60100000; + INCLUDE common_ram.inc |