summaryrefslogtreecommitdiffstats
path: root/common/startup.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:29 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:29 +0200
commitabfeb961e0ea5aed05acc8e672d497d9dfcc7835 (patch)
treed513aa902d220fe556e9c486bcffd7464efc2202 /common/startup.c
parent708897f52f0d8ea042ccc3b68a5a5b43a162ef66 (diff)
downloadbarebox-abfeb961e0ea5aed05acc8e672d497d9dfcc7835.tar.gz
barebox-abfeb961e0ea5aed05acc8e672d497d9dfcc7835.tar.xz
svn_rev_166
ppc startup cleaunup
Diffstat (limited to 'common/startup.c')
-rw-r--r--common/startup.c30
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 *
************************************************************************