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

Go to the source code of this file.

Macros

#define PGDIR_SHIFT   HPAGE_SHIFT
 
#define PGDIR_SIZE   HPAGE_SIZE
 
#define PGDIR_MASK   (~(PGDIR_SIZE-1))
 
#define PTRS_PER_PGD   _HV_L1_ENTRIES(HPAGE_SHIFT)
 
#define PGD_INDEX(va)   _HV_L1_INDEX(va, HPAGE_SHIFT)
 
#define SIZEOF_PGD   _HV_L1_SIZE(HPAGE_SHIFT)
 
#define PTRS_PER_PTE   _HV_L2_ENTRIES(HPAGE_SHIFT, PAGE_SHIFT)
 
#define PTE_INDEX(va)   _HV_L2_INDEX(va, HPAGE_SHIFT, PAGE_SHIFT)
 
#define SIZEOF_PTE   _HV_L2_SIZE(HPAGE_SHIFT, PAGE_SHIFT)
 
#define LAST_PKMAP   PTRS_PER_PTE
 
#define PKMAP_BASE   ((FIXADDR_BOOT_START - PAGE_SIZE*LAST_PKMAP) & PGDIR_MASK)
 
#define __VMAPPING_END   (FIXADDR_START & ~(HPAGE_SIZE-1))
 
#define _VMALLOC_END   __VMAPPING_END
 
#define VMALLOC_END   (_VMALLOC_END - PAGE_SIZE)
 
#define _VMALLOC_START   (_VMALLOC_END - VMALLOC_RESERVE)
 
#define VMALLOC_START   (_VMALLOC_START + PAGE_SIZE)
 
#define MAXMEM   (_VMALLOC_START - PAGE_OFFSET)
 
#define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG
 
#define __HAVE_ARCH_PTEP_SET_WRPROTECT
 
#define __HAVE_ARCH_PTEP_GET_AND_CLEAR
 
#define pmd_pte(pmd)   ((pmd).pud.pgd)
 
#define pmdp_ptep(pmdp)   (&(pmdp)->pud.pgd)
 
#define pte_pmd(pte)   ((pmd_t){ { (pte) } })
 

Functions

int ptep_test_and_clear_young (struct vm_area_struct *, unsigned long addr, pte_t *)
 
void ptep_set_wrprotect (struct mm_struct *, unsigned long addr, pte_t *)
 

Variables

unsigned long VMALLOC_RESERVE
 

Macro Definition Documentation

#define __HAVE_ARCH_PTEP_GET_AND_CLEAR

Definition at line 107 of file pgtable_32.h.

#define __HAVE_ARCH_PTEP_SET_WRPROTECT

Definition at line 100 of file pgtable_32.h.

#define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG

Definition at line 99 of file pgtable_32.h.

#define __VMAPPING_END   (FIXADDR_START & ~(HPAGE_SIZE-1))

Definition at line 60 of file pgtable_32.h.

#define _VMALLOC_END   __VMAPPING_END

Definition at line 68 of file pgtable_32.h.

#define _VMALLOC_START   (_VMALLOC_END - VMALLOC_RESERVE)

Definition at line 78 of file pgtable_32.h.

#define LAST_PKMAP   PTRS_PER_PTE

Definition at line 53 of file pgtable_32.h.

#define MAXMEM   (_VMALLOC_START - PAGE_OFFSET)

Definition at line 82 of file pgtable_32.h.

#define PGD_INDEX (   va)    _HV_L1_INDEX(va, HPAGE_SHIFT)

Definition at line 27 of file pgtable_32.h.

#define PGDIR_MASK   (~(PGDIR_SIZE-1))

Definition at line 25 of file pgtable_32.h.

#define PGDIR_SHIFT   HPAGE_SHIFT

Definition at line 23 of file pgtable_32.h.

#define PGDIR_SIZE   HPAGE_SIZE

Definition at line 24 of file pgtable_32.h.

#define PKMAP_BASE   ((FIXADDR_BOOT_START - PAGE_SIZE*LAST_PKMAP) & PGDIR_MASK)

Definition at line 55 of file pgtable_32.h.

#define pmd_pte (   pmd)    ((pmd).pud.pgd)

Definition at line 121 of file pgtable_32.h.

#define pmdp_ptep (   pmdp)    (&(pmdp)->pud.pgd)

Definition at line 122 of file pgtable_32.h.

#define PTE_INDEX (   va)    _HV_L2_INDEX(va, HPAGE_SHIFT, PAGE_SHIFT)

Definition at line 38 of file pgtable_32.h.

#define pte_pmd (   pte)    ((pmd_t){ { (pte) } })

Definition at line 123 of file pgtable_32.h.

#define PTRS_PER_PGD   _HV_L1_ENTRIES(HPAGE_SHIFT)

Definition at line 26 of file pgtable_32.h.

#define PTRS_PER_PTE   _HV_L2_ENTRIES(HPAGE_SHIFT, PAGE_SHIFT)

Definition at line 37 of file pgtable_32.h.

#define SIZEOF_PGD   _HV_L1_SIZE(HPAGE_SHIFT)

Definition at line 28 of file pgtable_32.h.

#define SIZEOF_PTE   _HV_L2_SIZE(HPAGE_SHIFT, PAGE_SHIFT)

Definition at line 39 of file pgtable_32.h.

#define VMALLOC_END   (_VMALLOC_END - PAGE_SIZE)

Definition at line 76 of file pgtable_32.h.

#define VMALLOC_START   (_VMALLOC_START + PAGE_SIZE)

Definition at line 79 of file pgtable_32.h.

Function Documentation

void ptep_set_wrprotect ( struct mm_struct ,
unsigned long  addr,
pte_t  
)

Definition at line 365 of file pgtable.c.

int ptep_test_and_clear_young ( struct vm_area_struct ,
unsigned long  addr,
pte_t  
)

Definition at line 346 of file pgtable.c.

Variable Documentation

unsigned long VMALLOC_RESERVE

Definition at line 58 of file init.c.