|
@@ -6,6 +6,7 @@
|
|
|
|
|
|
#include <linux/bitops.h>
|
|
#include <linux/bitops.h>
|
|
#include <linux/memblock.h>
|
|
#include <linux/memblock.h>
|
|
|
|
+#include <linux/string.h>
|
|
|
|
|
|
#include <asm/cacheflush.h>
|
|
#include <asm/cacheflush.h>
|
|
#include <asm/cp15.h>
|
|
#include <asm/cp15.h>
|
|
@@ -296,6 +297,7 @@ void __init adjust_lowmem_bounds_mpu(void)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ memset(mem, 0, sizeof(mem));
|
|
num = allocate_region(mem_start, specified_mem_size, mem_max_regions, mem);
|
|
num = allocate_region(mem_start, specified_mem_size, mem_max_regions, mem);
|
|
|
|
|
|
for (i = 0; i < num; i++) {
|
|
for (i = 0; i < num; i++) {
|