summaryrefslogtreecommitdiffstats
path: root/common/memory.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2013-01-15 14:48:48 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-18 11:56:50 +0100
commit43afe67390697041d1d16d4e5c934d2bfa831399 (patch)
tree6e3721bc26af5f1ce8ec53299a538221146589d3 /common/memory.c
parentf8fd03225d05ce96cdeaf8d96fb73780eb77805c (diff)
downloadbarebox-43afe67390697041d1d16d4e5c934d2bfa831399.tar.gz
barebox-data: add barebox-data sections
Add barebox-data section in arm branch to get complete barebox regions in sdram regions tree. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/memory.c')
-rw-r--r--common/memory.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/memory.c b/common/memory.c
index 7dd1384..81641f0 100644
--- a/common/memory.c
+++ b/common/memory.c
@@ -75,6 +75,10 @@ static int mem_malloc_resource(void)
(unsigned long)&_stext,
(unsigned long)&_etext -
(unsigned long)&_stext);
+ request_sdram_region("barebox data",
+ (unsigned long)&_sdata,
+ (unsigned long)&_edata -
+ (unsigned long)&_sdata);
request_sdram_region("bss",
(unsigned long)&__bss_start,
(unsigned long)&__bss_stop -