Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[deliverable/linux.git] / arch / cris / mm / init.c
1 /*
2 * linux/arch/cris/mm/init.c
3 *
4 * Copyright (C) 1995 Linus Torvalds
5 * Copyright (C) 2000,2001 Axis Communications AB
6 *
7 * Authors: Bjorn Wesen (bjornw@axis.com)
8 *
9 */
10
11 #include <linux/gfp.h>
12 #include <linux/init.h>
13 #include <linux/bootmem.h>
14 #include <asm/tlb.h>
15 #include <asm/sections.h>
16
17 unsigned long empty_zero_page;
18
19 void __init
20 mem_init(void)
21 {
22 BUG_ON(!mem_map);
23
24 /* max/min_low_pfn was set by setup.c
25 * now we just copy it to some other necessary places...
26 *
27 * high_memory was also set in setup.c
28 */
29 max_mapnr = max_low_pfn - min_low_pfn;
30 free_all_bootmem();
31 mem_init_print_info(NULL);
32 }
33
34 /* free the pages occupied by initialization code */
35
36 void
37 free_initmem(void)
38 {
39 free_initmem_default(-1);
40 }
This page took 0.031586 seconds and 5 git commands to generate.