9
0
Fork 0

memory: do not try to reserve iomem on sandbox

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2011-12-07 13:04:25 +01:00
parent 249a1ba06e
commit 7e3a33198a
1 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@ void mem_malloc_init(void *start, void *end)
malloc_brk = malloc_start;
}
#ifndef __SANDBOX__
static int mem_malloc_resource(void)
{
/*
@ -75,10 +76,10 @@ static int mem_malloc_resource(void)
#ifdef STACK_BASE
request_sdram_region("stack", STACK_BASE, STACK_SIZE);
#endif
return 0;
}
coredevice_initcall(mem_malloc_resource);
#endif
static void *sbrk_no_zero(ptrdiff_t increment)
{