From 56c5a861cefeff11eeda8e6f1c79a27cd22a8b78 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 5 Jul 2007 18:01:30 +0200 Subject: svn_rev_178 remove unneeded ifdef for arm, remove global data --- common/dlmalloc.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'common/dlmalloc.c') diff --git a/common/dlmalloc.c b/common/dlmalloc.c index 7c5375a5f0..d65e6dbe82 100644 --- a/common/dlmalloc.c +++ b/common/dlmalloc.c @@ -3,8 +3,6 @@ #include -DECLARE_GLOBAL_DATA_PTR; - /* Emulation of sbrk for WIN32 All code within the ifdef WIN32 is untested by me. @@ -547,19 +545,16 @@ static mbinptr av_[NAV * 2 + 2] = { IAV(120), IAV(121), IAV(122), IAV(123), IAV(124), IAV(125), IAV(126), IAV(127) }; -void malloc_bin_reloc (void) +void malloc_bin_reloc (ulong reloc_off) { -#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; + *p++ += reloc_off; } -#endif } + /* field-extraction macros */ #define first(b) ((b)->fd) -- cgit v1.2.3