Loading...
Note: File does not exist in v6.8.
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
17unsigned long empty_zero_page;
18
19void __init
20mem_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
36void
37free_initmem(void)
38{
39 free_initmem_default(-1);
40}