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

Go to the source code of this file.

Data Structures

struct  pmd_t
 

Macros

#define PAGETABLE_LEVELS   3
 
#define PTE_MAGNITUDE   3 /* 64-bit PTEs on SH-X2 TLB */
 
#define PGDIR_SHIFT   30
 
#define PTRS_PER_PGD   4
 
#define USER_PTRS_PER_PGD   2
 
#define PMD_SHIFT   (PAGE_SHIFT + (PAGE_SHIFT - PTE_MAGNITUDE))
 
#define PMD_SIZE   (1UL << PMD_SHIFT)
 
#define PMD_MASK   (~(PMD_SIZE-1))
 
#define PTRS_PER_PMD   ((1 << PGDIR_SHIFT) / PMD_SIZE)
 
#define pmd_ERROR(e)   printk("%s:%d: bad pmd %016llx.\n", __FILE__, __LINE__, pmd_val(e))
 
#define pmd_val(x)   ((x).pmd)
 
#define __pmd(x)   ((pmd_t) { (x) } )
 
#define pmd_index(address)   (((address) >> PMD_SHIFT) & (PTRS_PER_PMD-1))
 
#define pud_none(x)   (!pud_val(x))
 
#define pud_present(x)   (pud_val(x))
 
#define pud_clear(xp)   do { set_pud(xp, __pud(0)); } while (0)
 
#define pud_bad(x)   (pud_val(x) & ~PAGE_MASK)
 
#define set_pud(pudptr, pudval)   do { *(pudptr) = (pudval); } while(0)
 

Macro Definition Documentation

#define __pmd (   x)    ((pmd_t) { (x) } )

Definition at line 32 of file pgtable-3level.h.

#define PAGETABLE_LEVELS   3

Definition at line 10 of file pgtable-3level.h.

#define PGDIR_SHIFT   30

Definition at line 15 of file pgtable-3level.h.

#define pmd_ERROR (   e)    printk("%s:%d: bad pmd %016llx.\n", __FILE__, __LINE__, pmd_val(e))

Definition at line 27 of file pgtable-3level.h.

#define pmd_index (   address)    (((address) >> PMD_SHIFT) & (PTRS_PER_PMD-1))

Definition at line 39 of file pgtable-3level.h.

#define PMD_MASK   (~(PMD_SIZE-1))

Definition at line 23 of file pgtable-3level.h.

#define PMD_SHIFT   (PAGE_SHIFT + (PAGE_SHIFT - PTE_MAGNITUDE))

Definition at line 21 of file pgtable-3level.h.

#define PMD_SIZE   (1UL << PMD_SHIFT)

Definition at line 22 of file pgtable-3level.h.

#define pmd_val (   x)    ((x).pmd)

Definition at line 31 of file pgtable-3level.h.

#define PTE_MAGNITUDE   3 /* 64-bit PTEs on SH-X2 TLB */

Definition at line 12 of file pgtable-3level.h.

#define PTRS_PER_PGD   4

Definition at line 17 of file pgtable-3level.h.

#define PTRS_PER_PMD   ((1 << PGDIR_SHIFT) / PMD_SIZE)

Definition at line 25 of file pgtable-3level.h.

#define pud_bad (   x)    (pud_val(x) & ~PAGE_MASK)

Definition at line 48 of file pgtable-3level.h.

#define pud_clear (   xp)    do { set_pud(xp, __pud(0)); } while (0)

Definition at line 47 of file pgtable-3level.h.

#define pud_none (   x)    (!pud_val(x))

Definition at line 45 of file pgtable-3level.h.

#define pud_present (   x)    (pud_val(x))

Definition at line 46 of file pgtable-3level.h.

#define set_pud (   pudptr,
  pudval 
)    do { *(pudptr) = (pudval); } while(0)

Definition at line 54 of file pgtable-3level.h.

#define USER_PTRS_PER_PGD   2

Definition at line 18 of file pgtable-3level.h.