summaryrefslogtreecommitdiffstats
path: root/common/dlmalloc.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:28 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:28 +0200
commita8421600d1d1a03a322e45b00db318dbf80fa03f (patch)
tree2505edb543d29d6a2442928624773e80a0b542df /common/dlmalloc.c
parenta21d0bc4c26e1af4e75c09aa293739a339a400b5 (diff)
downloadbarebox-a8421600d1d1a03a322e45b00db318dbf80fa03f.tar.gz
svn_rev_152
remove global data gd_t and board info bd_t entirely for arm
Diffstat (limited to 'common/dlmalloc.c')
-rw-r--r--common/dlmalloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index 01aca94..7c5375a 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -549,13 +549,16 @@ static mbinptr av_[NAV * 2 + 2] = {
void malloc_bin_reloc (void)
{
+#ifdef CONFIG_ARM
+ return;
+#else
unsigned long *p = (unsigned long *)(&av_[2]);
int i;
for (i=2; i<(sizeof(av_)/sizeof(mbinptr)); ++i) {
*p++ += gd->reloc_off;
}
+#endif
}
-
/* field-extraction macros */