From 8a9f20cd6899d57b9beccacf2276dd018dac0315 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Mon, 12 Sep 2011 17:24:45 -0400 Subject: [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. --- support/ld/maple_native/flash.ld | 4 ++++ support/ld/maple_native/jtag.ld | 4 ++++ support/ld/maple_native/ram.ld | 4 ++++ 3 files changed, 12 insertions(+) (limited to 'support') 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 -- cgit v1.2.3