11 #include <linux/export.h>
25 #ifndef CONFIG_EXCEPTION_L1_SCRATCH
26 #if defined CONFIG_SYSCALL_TAB_L1
29 static unsigned long exception_stack[
NR_CPUS][1024];
49 unsigned long zones_size[MAX_NR_ZONES] = {
61 pr_debug(
"free_area_init -> start_mem is %#lx virtual_end is %#lx\n",
79 #ifdef CONFIG_EXCEPTION_L1_SCRATCH
83 cpu_pda[
cpu].ex_stack = exception_stack[cpu + 1];
93 unsigned int codek = 0, datak = 0, initk = 0;
94 unsigned int reservedpages = 0, freepages = 0;
117 #if (defined(CONFIG_BFIN_EXTMEM_ICACHEABLE) && ANOMALY_05000263)
126 "Memory available: %luk/%luk RAM, "
127 "(%uk init code, %uk kernel code, %uk data, %uk dma, %uk reserved)\n",
132 static void __init free_init_pages(
const char *
what,
unsigned long begin,
unsigned long end)
142 printk(
KERN_INFO "Freeing %s: %ldk freed\n", what, (end - begin) >> 10);
145 #ifdef CONFIG_BLK_DEV_INITRD
149 free_init_pages(
"initrd memory", start, end);
156 #if defined CONFIG_RAMKERNEL && !defined CONFIG_MPU
157 free_init_pages(
"unused kernel memory",