Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions | Variables
pgtable.h File Reference
#include <asm/pgtable-2level.h>
#include <asm/page.h>
#include <asm/mmu.h>
#include <asm/addrspace.h>
#include <asm/fixmap.h>
#include <asm/pgtable_64.h>
#include <asm-generic/pgtable.h>

Go to the source code of this file.

Macros

#define ZERO_PAGE(vaddr)   (virt_to_page(empty_zero_page))
 
#define NEFF   32
 
#define NEFF_SIGN   (1LL << (NEFF - 1))
 
#define NEFF_MASK   (-1LL << NEFF)
 
#define NPHYS   32
 
#define NPHYS_SIGN   (1LL << (NPHYS - 1))
 
#define NPHYS_MASK   (-1LL << NPHYS)
 
#define PGDIR_SIZE   (1UL << PGDIR_SHIFT)
 
#define PGDIR_MASK   (~(PGDIR_SIZE-1))
 
#define PTRS_PER_PTE   (PAGE_SIZE / (1 << PTE_MAGNITUDE))
 
#define FIRST_USER_ADDRESS   0
 
#define PHYS_ADDR_MASK29   0x1fffffff
 
#define PHYS_ADDR_MASK32   0xffffffff
 
#define PTE_PHYS_MASK   (phys_addr_mask() & PAGE_MASK)
 
#define PTE_FLAGS_MASK   (~(PTE_PHYS_MASK) << PAGE_SHIFT)
 
#define VMALLOC_START   (0xf0000000)
 
#define VMALLOC_END   (FIXADDR_START-2*PAGE_SIZE)
 
#define __P000   PAGE_NONE
 
#define __P001   PAGE_READONLY
 
#define __P010   PAGE_COPY
 
#define __P011   PAGE_COPY
 
#define __P100   PAGE_EXECREAD
 
#define __P101   PAGE_EXECREAD
 
#define __P110   PAGE_COPY
 
#define __P111   PAGE_COPY
 
#define __S000   PAGE_NONE
 
#define __S001   PAGE_READONLY
 
#define __S010   PAGE_WRITEONLY
 
#define __S011   PAGE_SHARED
 
#define __S100   PAGE_EXECREAD
 
#define __S101   PAGE_EXECREAD
 
#define __S110   PAGE_RWX
 
#define __S111   PAGE_RWX
 
#define kern_addr_valid(addr)   (1)
 
#define io_remap_pfn_range(vma, vaddr, pfn, size, prot)   remap_pfn_range(vma, vaddr, pfn, size, prot)
 
#define pte_pfn(x)   ((unsigned long)(((x).pte_low >> PAGE_SHIFT)))
 
#define HAVE_ARCH_UNMAPPED_AREA
 
#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN
 
#define __HAVE_ARCH_PTE_SPECIAL
 

Typedefs

typedef pte_tpte_addr_t
 

Functions

void pgtable_cache_init (void)
 
void __update_cache (struct vm_area_struct *vma, unsigned long address, pte_t pte)
 
void __update_tlb (struct vm_area_struct *vma, unsigned long address, pte_t pte)
 
void paging_init (void)
 
void page_table_range_init (unsigned long start, unsigned long end, pgd_t *pgd)
 

Variables

unsigned long empty_zero_page [PAGE_SIZE/sizeof(unsigned long)]
 
pgd_t swapper_pg_dir [PTRS_PER_PGD]
 

Macro Definition Documentation

#define __HAVE_ARCH_PTE_SPECIAL

Definition at line 162 of file pgtable.h.

#define __P000   PAGE_NONE

Definition at line 105 of file pgtable.h.

#define __P001   PAGE_READONLY

Definition at line 106 of file pgtable.h.

#define __P010   PAGE_COPY

Definition at line 107 of file pgtable.h.

#define __P011   PAGE_COPY

Definition at line 108 of file pgtable.h.

#define __P100   PAGE_EXECREAD

Definition at line 109 of file pgtable.h.

#define __P101   PAGE_EXECREAD

Definition at line 110 of file pgtable.h.

#define __P110   PAGE_COPY

Definition at line 111 of file pgtable.h.

#define __P111   PAGE_COPY

Definition at line 112 of file pgtable.h.

#define __S000   PAGE_NONE

Definition at line 114 of file pgtable.h.

#define __S001   PAGE_READONLY

Definition at line 115 of file pgtable.h.

#define __S010   PAGE_WRITEONLY

Definition at line 116 of file pgtable.h.

#define __S011   PAGE_SHARED

Definition at line 117 of file pgtable.h.

#define __S100   PAGE_EXECREAD

Definition at line 118 of file pgtable.h.

#define __S101   PAGE_EXECREAD

Definition at line 119 of file pgtable.h.

#define __S110   PAGE_RWX

Definition at line 120 of file pgtable.h.

#define __S111   PAGE_RWX

Definition at line 121 of file pgtable.h.

#define FIRST_USER_ADDRESS   0

Definition at line 65 of file pgtable.h.

#define HAVE_ARCH_UNMAPPED_AREA

Definition at line 159 of file pgtable.h.

#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN

Definition at line 160 of file pgtable.h.

#define io_remap_pfn_range (   vma,
  vaddr,
  pfn,
  size,
  prot 
)    remap_pfn_range(vma, vaddr, pfn, size, prot)

Definition at line 127 of file pgtable.h.

#define kern_addr_valid (   addr)    (1)

Definition at line 125 of file pgtable.h.

#define NEFF   32

Definition at line 40 of file pgtable.h.

#define NEFF_MASK   (-1LL << NEFF)

Definition at line 42 of file pgtable.h.

#define NEFF_SIGN   (1LL << (NEFF - 1))

Definition at line 41 of file pgtable.h.

#define NPHYS   32

Definition at line 53 of file pgtable.h.

#define NPHYS_MASK   (-1LL << NPHYS)

Definition at line 57 of file pgtable.h.

#define NPHYS_SIGN   (1LL << (NPHYS - 1))

Definition at line 56 of file pgtable.h.

#define PGDIR_MASK   (~(PGDIR_SIZE-1))

Definition at line 60 of file pgtable.h.

#define PGDIR_SIZE   (1UL << PGDIR_SHIFT)

Definition at line 59 of file pgtable.h.

#define PHYS_ADDR_MASK29   0x1fffffff

Definition at line 67 of file pgtable.h.

#define PHYS_ADDR_MASK32   0xffffffff

Definition at line 68 of file pgtable.h.

#define PTE_FLAGS_MASK   (~(PTE_PHYS_MASK) << PAGE_SHIFT)

Definition at line 80 of file pgtable.h.

#define pte_pfn (   x)    ((unsigned long)(((x).pte_low >> PAGE_SHIFT)))

Definition at line 130 of file pgtable.h.

#define PTE_PHYS_MASK   (phys_addr_mask() & PAGE_MASK)

Definition at line 79 of file pgtable.h.

#define PTRS_PER_PTE   (PAGE_SIZE / (1 << PTE_MAGNITUDE))

Definition at line 63 of file pgtable.h.

#define VMALLOC_END   (FIXADDR_START-2*PAGE_SIZE)

Definition at line 87 of file pgtable.h.

#define VMALLOC_START   (0xf0000000)

Definition at line 85 of file pgtable.h.

#define ZERO_PAGE (   vaddr)    (virt_to_page(empty_zero_page))

Definition at line 32 of file pgtable.h.

Typedef Documentation

typedef pte_t* pte_addr_t

Definition at line 123 of file pgtable.h.

Function Documentation

void __update_cache ( struct vm_area_struct vma,
unsigned long  address,
pte_t  pte 
)

Definition at line 121 of file cache.c.

void __update_tlb ( struct vm_area_struct vma,
unsigned long  address,
pte_t  pte 
)

Definition at line 189 of file tlb-r3k.c.

void page_table_range_init ( unsigned long  start,
unsigned long  end,
pgd_t pgd 
)

Definition at line 93 of file nommu.c.

void paging_init ( void  )

paging_init - setup page tables

paging_init() sets up the page tables for each node of the system and frees the bootmem allocator memory for general use.

Definition at line 238 of file init.c.

void pgtable_cache_init ( void  )

Definition at line 145 of file pgalloc.c.

Variable Documentation

unsigned long empty_zero_page[PAGE_SIZE/sizeof(unsigned long)]

Definition at line 42 of file mmu.c.

pgd_t swapper_pg_dir[PTRS_PER_PGD]

Definition at line 36 of file init.c.