diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:29 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:29 +0200 |
commit | abfeb961e0ea5aed05acc8e672d497d9dfcc7835 (patch) | |
tree | d513aa902d220fe556e9c486bcffd7464efc2202 /common/startup.c | |
parent | 708897f52f0d8ea042ccc3b68a5a5b43a162ef66 (diff) | |
download | barebox-abfeb961e0ea5aed05acc8e672d497d9dfcc7835.tar.gz barebox-abfeb961e0ea5aed05acc8e672d497d9dfcc7835.tar.xz |
svn_rev_166
ppc startup cleaunup
Diffstat (limited to 'common/startup.c')
-rw-r--r-- | common/startup.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/common/startup.c b/common/startup.c index 8dc42ab905..0758d78fe4 100644 --- a/common/startup.c +++ b/common/startup.c @@ -64,36 +64,6 @@ ulong monitor_flash_len; const char version_string[] = U_BOOT_VERSION" (" __DATE__ " - " __TIME__ ")"CONFIG_IDENT_STRING; -/* - * Begin and End of memory area for malloc(), and current "brk" - */ -static ulong mem_malloc_start = 0; -static ulong mem_malloc_end = 0; -static ulong mem_malloc_brk = 0; - -static void mem_malloc_init (void) -{ - mem_malloc_start = _armboot_start - CFG_MALLOC_LEN; - mem_malloc_end = _armboot_start; - mem_malloc_brk = mem_malloc_start; - - memset ((void *) mem_malloc_start, 0, - mem_malloc_end - mem_malloc_start); -} - -void *sbrk (ptrdiff_t increment) -{ - ulong old = mem_malloc_brk; - ulong new = old + increment; - - if ((new < mem_malloc_start) || (new > mem_malloc_end)) { - return (NULL); - } - mem_malloc_brk = new; - - return ((void *) old); -} - /************************************************************************ * Init Utilities * ************************************************************************ |