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

Go to the source code of this file.

Macros

#define VMALLOC_START   0
 
#define VMALLOC_END   0xffffffff
 
#define pgd_present(pgd)   (1)
 
#define pgd_none(pgd)   (0)
 
#define pgd_bad(pgd)   (0)
 
#define pgd_clear(pgdp)
 
#define kern_addr_valid(addr)   (1)
 
#define pmd_offset(a, b)   ((void *)0)
 
#define pmd_none(x)   (!pmd_val(x))
 
#define pmd_present(x)   (pmd_val(x))
 
#define pmd_clear(xp)   do { set_pmd(xp, __pmd(0)); } while (0)
 
#define pmd_bad(x)   (pmd_val(x) & ~PAGE_MASK)
 
#define PAGE_NONE   __pgprot(0) /* these mean nothing to NO_MM */
 
#define PAGE_SHARED   __pgprot(0) /* these mean nothing to NO_MM */
 
#define PAGE_COPY   __pgprot(0) /* these mean nothing to NO_MM */
 
#define PAGE_READONLY   __pgprot(0) /* these mean nothing to NO_MM */
 
#define PAGE_KERNEL   __pgprot(0) /* these mean nothing to NO_MM */
 
#define pgprot_noncached(prot)   (prot)
 
#define __swp_type(x)   (0)
 
#define __swp_offset(x)   (0)
 
#define __swp_entry(typ, off)   ((swp_entry_t) { ((typ) | ((off) << 7)) })
 
#define __pte_to_swp_entry(pte)   ((swp_entry_t) { pte_val(pte) })
 
#define __swp_entry_to_pte(x)   ((pte_t) { (x).val })
 
#define set_pte(pteptr, pteval)   (*(pteptr) = pteval)
 
#define set_pte_at(mm, addr, ptep, pteval)   set_pte(ptep, pteval)
 
#define ZERO_PAGE(vaddr)   virt_to_page(empty_zero_page)
 
#define swapper_pg_dir   ((pgd_t *) 0)
 
#define pgtable_cache_init()   do { } while (0)
 
#define io_remap_pfn_range   remap_pfn_range
 

Functions

void paging_init (void)
 

Variables

unsigned long empty_zero_page
 

Macro Definition Documentation

#define __pte_to_swp_entry (   pte)    ((swp_entry_t) { pte_val(pte) })

Definition at line 50 of file pgtable.h.

#define __swp_entry (   typ,
  off 
)    ((swp_entry_t) { ((typ) | ((off) << 7)) })

Definition at line 49 of file pgtable.h.

#define __swp_entry_to_pte (   x)    ((pte_t) { (x).val })

Definition at line 51 of file pgtable.h.

#define __swp_offset (   x)    (0)

Definition at line 48 of file pgtable.h.

#define __swp_type (   x)    (0)

Definition at line 47 of file pgtable.h.

#define io_remap_pfn_range   remap_pfn_range

Definition at line 74 of file pgtable.h.

#define kern_addr_valid (   addr)    (1)

Definition at line 30 of file pgtable.h.

#define PAGE_COPY   __pgprot(0) /* these mean nothing to NO_MM */

Definition at line 40 of file pgtable.h.

#define PAGE_KERNEL   __pgprot(0) /* these mean nothing to NO_MM */

Definition at line 42 of file pgtable.h.

#define PAGE_NONE   __pgprot(0) /* these mean nothing to NO_MM */

Definition at line 38 of file pgtable.h.

#define PAGE_READONLY   __pgprot(0) /* these mean nothing to NO_MM */

Definition at line 41 of file pgtable.h.

#define PAGE_SHARED   __pgprot(0) /* these mean nothing to NO_MM */

Definition at line 39 of file pgtable.h.

#define pgd_bad (   pgd)    (0)

Definition at line 28 of file pgtable.h.

#define pgd_clear (   pgdp)

Definition at line 29 of file pgtable.h.

#define pgd_none (   pgd)    (0)

Definition at line 27 of file pgtable.h.

#define pgd_present (   pgd)    (1)

Definition at line 26 of file pgtable.h.

#define pgprot_noncached (   prot)    (prot)

Definition at line 43 of file pgtable.h.

#define pgtable_cache_init (   void)    do { } while (0)

Definition at line 73 of file pgtable.h.

#define pmd_bad (   x)    (pmd_val(x) & ~PAGE_MASK)

Definition at line 36 of file pgtable.h.

#define pmd_clear (   xp)    do { set_pmd(xp, __pmd(0)); } while (0)

Definition at line 35 of file pgtable.h.

#define pmd_none (   x)    (!pmd_val(x))

Definition at line 33 of file pgtable.h.

#define pmd_offset (   a,
  b 
)    ((void *)0)

Definition at line 32 of file pgtable.h.

#define pmd_present (   x)    (pmd_val(x))

Definition at line 34 of file pgtable.h.

#define set_pte (   pteptr,
  pteval 
)    (*(pteptr) = pteval)

Definition at line 58 of file pgtable.h.

#define set_pte_at (   mm,
  addr,
  ptep,
  pteval 
)    set_pte(ptep, pteval)

Definition at line 59 of file pgtable.h.

#define swapper_pg_dir   ((pgd_t *) 0)

Definition at line 68 of file pgtable.h.

#define VMALLOC_END   0xffffffff

Definition at line 24 of file pgtable.h.

#define VMALLOC_START   0

Definition at line 23 of file pgtable.h.

#define ZERO_PAGE (   vaddr)    virt_to_page(empty_zero_page)

Definition at line 65 of file pgtable.h.

Function Documentation

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.

Variable Documentation

unsigned long empty_zero_page

Definition at line 42 of file mmu.c.