nommu.c (44b56603c4c476b845a824cff6fe905c6268b2a1) | nommu.c (be370302742ff9948f2a42b15cb2ba174d97b930) |
---|---|
1/* 2 * linux/arch/arm/mm/nommu.c 3 * 4 * ARM uCLinux supporting functions. 5 */ 6#include <linux/module.h> 7#include <linux/mm.h> 8#include <linux/pagemap.h> --- 4 unchanged lines hidden (view full) --- 13#include <asm/sections.h> 14#include <asm/page.h> 15#include <asm/setup.h> 16#include <asm/mach/arch.h> 17 18#include "mm.h" 19 20/* | 1/* 2 * linux/arch/arm/mm/nommu.c 3 * 4 * ARM uCLinux supporting functions. 5 */ 6#include <linux/module.h> 7#include <linux/mm.h> 8#include <linux/pagemap.h> --- 4 unchanged lines hidden (view full) --- 13#include <asm/sections.h> 14#include <asm/page.h> 15#include <asm/setup.h> 16#include <asm/mach/arch.h> 17 18#include "mm.h" 19 20/* |
21 * Reserve the various regions of node 0 | 21 * Reserve the various regions |
22 */ | 22 */ |
23void __init reserve_node_zero(pg_data_t *pgdat) | 23void __init reserve_special_regions(void) |
24{ 25 /* 26 * Register the kernel text and data with bootmem. 27 * Note that this can only be in node 0. 28 */ 29#ifdef CONFIG_XIP_KERNEL | 24{ 25 /* 26 * Register the kernel text and data with bootmem. 27 * Note that this can only be in node 0. 28 */ 29#ifdef CONFIG_XIP_KERNEL |
30 reserve_bootmem_node(pgdat, __pa(_data), _end - _data, 31 BOOTMEM_DEFAULT); | 30 reserve_bootmem(__pa(_data), _end - _data, BOOTMEM_DEFAULT); |
32#else | 31#else |
33 reserve_bootmem_node(pgdat, __pa(_stext), _end - _stext, 34 BOOTMEM_DEFAULT); | 32 reserve_bootmem(__pa(_stext), _end - _stext, BOOTMEM_DEFAULT); |
35#endif 36 37 /* 38 * Register the exception vector page. 39 * some architectures which the DRAM is the exception vector to trap, 40 * alloc_page breaks with error, although it is not NULL, but "0." 41 */ | 33#endif 34 35 /* 36 * Register the exception vector page. 37 * some architectures which the DRAM is the exception vector to trap, 38 * alloc_page breaks with error, although it is not NULL, but "0." 39 */ |
42 reserve_bootmem_node(pgdat, CONFIG_VECTORS_BASE, PAGE_SIZE, 43 BOOTMEM_DEFAULT); | 40 reserve_bootmem(CONFIG_VECTORS_BASE, PAGE_SIZE, BOOTMEM_DEFAULT); |
44} 45 46/* 47 * paging_init() sets up the page tables, initialises the zone memory 48 * maps, and sets up the zero page, bad page and bad page tables. 49 */ 50void __init paging_init(struct machine_desc *mdesc) 51{ --- 57 unchanged lines hidden --- | 41} 42 43/* 44 * paging_init() sets up the page tables, initialises the zone memory 45 * maps, and sets up the zero page, bad page and bad page tables. 46 */ 47void __init paging_init(struct machine_desc *mdesc) 48{ --- 57 unchanged lines hidden --- |