Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mmu.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/mman.h>
#include <linux/nodemask.h>
#include <linux/memblock.h>
#include <linux/fs.h>
#include <linux/vmalloc.h>
#include <linux/sizes.h>
#include <asm/cp15.h>
#include <asm/cputype.h>
#include <asm/sections.h>
#include <asm/cachetype.h>
#include <asm/setup.h>
#include <asm/smp_plat.h>
#include <asm/tlb.h>
#include <asm/highmem.h>
#include <asm/system_info.h>
#include <asm/traps.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/mach/pci.h>
#include "mm.h"

Go to the source code of this file.

Data Structures

struct  cachepolicy
 

Macros

#define CPOLICY_UNCACHED   0
 
#define CPOLICY_BUFFERED   1
 
#define CPOLICY_WRITETHROUGH   2
 
#define CPOLICY_WRITEBACK   3
 
#define CPOLICY_WRITEALLOC   4
 
#define PROT_PTE_DEVICE   L_PTE_PRESENT|L_PTE_YOUNG|L_PTE_DIRTY|L_PTE_XN
 
#define PROT_SECT_DEVICE   PMD_TYPE_SECT|PMD_SECT_AP_WRITE
 
#define vectors_base()   (vectors_high() ? 0xffff0000 : 0)
 
#define pci_reserve_io()   do { } while (0)
 
#define SWAPPER_PG_DIR_SIZE   (PTRS_PER_PGD * sizeof(pgd_t))
 

Functions

 EXPORT_SYMBOL (empty_zero_page)
 
 EXPORT_SYMBOL (pgprot_user)
 
 EXPORT_SYMBOL (pgprot_kernel)
 
 early_param ("cachepolicy", early_cachepolicy)
 
 early_param ("nocache", early_nocache)
 
 early_param ("nowb", early_nowrite)
 
 early_param ("ecc", early_ecc)
 
 __setup ("noalign", noalign_setup)
 
void adjust_cr (unsigned long mask, unsigned long set)
 
struct mem_typeget_mem_type (unsigned int type)
 
 EXPORT_SYMBOL (get_mem_type)
 
void __init iotable_init (struct map_desc *io_desc, int nr)
 
void __init vm_reserve_area_early (unsigned long addr, unsigned long size, void *caller)
 
 early_param ("vmalloc", early_vmalloc)
 
void __init sanity_check_meminfo (void)
 
void __init arm_mm_memblock_reserve (void)
 
void __init paging_init (struct machine_desc *mdesc)
 

Variables

struct pageempty_zero_page
 
pmd_ttop_pmd
 
pgprot_t pgprot_user
 
pgprot_t pgprot_kernel
 

Macro Definition Documentation

#define CPOLICY_BUFFERED   1

Definition at line 51 of file mmu.c.

#define CPOLICY_UNCACHED   0

Definition at line 50 of file mmu.c.

#define CPOLICY_WRITEALLOC   4

Definition at line 54 of file mmu.c.

#define CPOLICY_WRITEBACK   3

Definition at line 53 of file mmu.c.

#define CPOLICY_WRITETHROUGH   2

Definition at line 52 of file mmu.c.

#define pci_reserve_io ( )    do { } while (0)

Definition at line 876 of file mmu.c.

#define PROT_PTE_DEVICE   L_PTE_PRESENT|L_PTE_YOUNG|L_PTE_DIRTY|L_PTE_XN

Definition at line 198 of file mmu.c.

#define PROT_SECT_DEVICE   PMD_TYPE_SECT|PMD_SECT_AP_WRITE

Definition at line 199 of file mmu.c.

#define SWAPPER_PG_DIR_SIZE   (PTRS_PER_PGD * sizeof(pgd_t))

Definition at line 1062 of file mmu.c.

#define vectors_base ( )    (vectors_high() ? 0xffff0000 : 0)

Definition at line 544 of file mmu.c.

Function Documentation

__setup ( "noalign"  ,
noalign_setup   
)
void adjust_cr ( unsigned long  mask,
unsigned long  set 
)

Definition at line 179 of file mmu.c.

void __init arm_mm_memblock_reserve ( void  )

Definition at line 1068 of file mmu.c.

early_param ( "cachepolicy"  ,
early_cachepolicy   
)
early_param ( "nocache"  ,
early_nocache   
)
early_param ( "nowb"  ,
early_nowrite   
)
early_param ( "ecc"  ,
early_ecc   
)
early_param ( "vmalloc"  ,
early_vmalloc   
)
EXPORT_SYMBOL ( empty_zero_page  )
EXPORT_SYMBOL ( pgprot_user  )
EXPORT_SYMBOL ( pgprot_kernel  )
EXPORT_SYMBOL ( get_mem_type  )
struct mem_type* get_mem_type ( unsigned int  type)
read

Definition at line 299 of file mmu.c.

void __init iotable_init ( struct map_desc io_desc,
int  nr 
)

Definition at line 756 of file mmu.c.

void __init paging_init ( struct machine_desc mdesc)

Definition at line 1211 of file mmu.c.

void __init sanity_check_meminfo ( void  )

Definition at line 912 of file mmu.c.

void __init vm_reserve_area_early ( unsigned long  addr,
unsigned long  size,
void caller 
)

Definition at line 778 of file mmu.c.

Variable Documentation

struct page* empty_zero_page

Definition at line 42 of file mmu.c.

pgprot_t pgprot_kernel

Definition at line 59 of file mmu.c.

pgprot_t pgprot_user

Definition at line 58 of file mmu.c.

pmd_t* top_pmd

Definition at line 48 of file mmu.c.