summaryrefslogtreecommitdiffstats
path: root/common/misc.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:55 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:55 +0200
commit2c835efc1bf9498b01d551f3a5912c882e98fd58 (patch)
tree951f3a8371ed61b67ef9845ebb0d34da851a6eb2 /common/misc.c
parent9c9c4db6be078a48da3d7e520367ce9b4642ba17 (diff)
downloadbarebox-2c835efc1bf9498b01d551f3a5912c882e98fd58.tar.gz
svn_rev_457
Diffstat (limited to 'common/misc.c')
-rw-r--r--common/misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/misc.c b/common/misc.c
index d2b3455..3063118 100644
--- a/common/misc.c
+++ b/common/misc.c
@@ -14,6 +14,9 @@ void mem_malloc_init (void *start, void *end)
mem_malloc_start = (ulong)start;
mem_malloc_end = (ulong)end;
mem_malloc_brk = mem_malloc_start;
+
+ memset ((void *) mem_malloc_start, 0,
+ mem_malloc_end - mem_malloc_start);
}
void *sbrk (ptrdiff_t increment)