Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pte-common.h File Reference

Go to the source code of this file.

Macros

#define _PAGE_HASHPTE   0
 
#define _PAGE_SHARED   0
 
#define _PAGE_HWWRITE   0
 
#define _PAGE_EXEC   0
 
#define _PAGE_ENDIAN   0
 
#define _PAGE_COHERENT   0
 
#define _PAGE_WRITETHRU   0
 
#define _PAGE_4K_PFN   0
 
#define _PAGE_SAO   0
 
#define _PAGE_PSIZE   0
 
#define _PMD_PRESENT_MASK   _PMD_PRESENT
 
#define _PMD_SIZE   0
 
#define PMD_PAGE_SIZE(pmd)   bad_call_to_PMD_PAGE_SIZE()
 
#define _PAGE_KERNEL_RO   0
 
#define _PAGE_KERNEL_ROX   (_PAGE_EXEC)
 
#define _PAGE_KERNEL_RW   (_PAGE_DIRTY | _PAGE_RW | _PAGE_HWWRITE)
 
#define _PAGE_KERNEL_RWX   (_PAGE_DIRTY | _PAGE_RW | _PAGE_HWWRITE | _PAGE_EXEC)
 
#define _PAGE_HPTEFLAGS   _PAGE_HASHPTE
 
#define _PTE_NONE_MASK   _PAGE_HPTEFLAGS
 
#define PTE_RPN_SHIFT   (PAGE_SHIFT)
 
#define PTE_RPN_MAX   (1UL << (32 - PTE_RPN_SHIFT))
 
#define PTE_RPN_MASK   (~((1UL<<PTE_RPN_SHIFT)-1))
 
#define _PAGE_CHG_MASK
 
#define PAGE_PROT_BITS
 
#define _PAGE_BASE_NC   (_PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_PSIZE)
 
#define _PAGE_BASE   (_PAGE_BASE_NC)
 
#define PAGE_NONE   __pgprot(_PAGE_BASE)
 
#define PAGE_SHARED   __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
 
#define PAGE_SHARED_X   __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
 
#define PAGE_COPY   __pgprot(_PAGE_BASE | _PAGE_USER)
 
#define PAGE_COPY_X   __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
 
#define PAGE_READONLY   __pgprot(_PAGE_BASE | _PAGE_USER)
 
#define PAGE_READONLY_X   __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
 
#define __P000   PAGE_NONE
 
#define __P001   PAGE_READONLY
 
#define __P010   PAGE_COPY
 
#define __P011   PAGE_COPY
 
#define __P100   PAGE_READONLY_X
 
#define __P101   PAGE_READONLY_X
 
#define __P110   PAGE_COPY_X
 
#define __P111   PAGE_COPY_X
 
#define __S000   PAGE_NONE
 
#define __S001   PAGE_READONLY
 
#define __S010   PAGE_SHARED
 
#define __S011   PAGE_SHARED
 
#define __S100   PAGE_READONLY_X
 
#define __S101   PAGE_READONLY_X
 
#define __S110   PAGE_SHARED_X
 
#define __S111   PAGE_SHARED_X
 
#define PAGE_KERNEL   __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW)
 
#define PAGE_KERNEL_NC
 
#define PAGE_KERNEL_NCG
 
#define PAGE_KERNEL_X   __pgprot(_PAGE_BASE | _PAGE_KERNEL_RWX)
 
#define PAGE_KERNEL_RO   __pgprot(_PAGE_BASE | _PAGE_KERNEL_RO)
 
#define PAGE_KERNEL_ROX   __pgprot(_PAGE_BASE | _PAGE_KERNEL_ROX)
 
#define PAGE_KERNEL_TEXT   PAGE_KERNEL_ROX
 
#define PAGE_KERNEL_EXEC   PAGE_KERNEL_X
 
#define pte_user(val)   ((val & _PAGE_USER) == _PAGE_USER)
 
#define PAGE_AGP   (PAGE_KERNEL_NC)
 
#define HAVE_PAGE_AGP
 
#define __HAVE_ARCH_PTE_SPECIAL
 

Functions

unsigned long bad_call_to_PMD_PAGE_SIZE (void)
 

Macro Definition Documentation

#define __HAVE_ARCH_PTE_SPECIAL

Definition at line 186 of file pte-common.h.

#define __P000   PAGE_NONE

Definition at line 132 of file pte-common.h.

#define __P001   PAGE_READONLY

Definition at line 133 of file pte-common.h.

#define __P010   PAGE_COPY

Definition at line 134 of file pte-common.h.

#define __P011   PAGE_COPY

Definition at line 135 of file pte-common.h.

#define __P100   PAGE_READONLY_X

Definition at line 136 of file pte-common.h.

#define __P101   PAGE_READONLY_X

Definition at line 137 of file pte-common.h.

#define __P110   PAGE_COPY_X

Definition at line 138 of file pte-common.h.

#define __P111   PAGE_COPY_X

Definition at line 139 of file pte-common.h.

#define __S000   PAGE_NONE

Definition at line 141 of file pte-common.h.

#define __S001   PAGE_READONLY

Definition at line 142 of file pte-common.h.

#define __S010   PAGE_SHARED

Definition at line 143 of file pte-common.h.

#define __S011   PAGE_SHARED

Definition at line 144 of file pte-common.h.

#define __S100   PAGE_READONLY_X

Definition at line 145 of file pte-common.h.

#define __S101   PAGE_READONLY_X

Definition at line 146 of file pte-common.h.

#define __S110   PAGE_SHARED_X

Definition at line 147 of file pte-common.h.

#define __S111   PAGE_SHARED_X

Definition at line 148 of file pte-common.h.

#define _PAGE_4K_PFN   0

Definition at line 29 of file pte-common.h.

#define _PAGE_BASE   (_PAGE_BASE_NC)

Definition at line 111 of file pte-common.h.

#define _PAGE_BASE_NC   (_PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_PSIZE)

Definition at line 107 of file pte-common.h.

#define _PAGE_CHG_MASK
Value:

Definition at line 92 of file pte-common.h.

#define _PAGE_COHERENT   0

Definition at line 23 of file pte-common.h.

#define _PAGE_ENDIAN   0

Definition at line 20 of file pte-common.h.

#define _PAGE_EXEC   0

Definition at line 17 of file pte-common.h.

#define _PAGE_HASHPTE   0

Definition at line 8 of file pte-common.h.

#define _PAGE_HPTEFLAGS   _PAGE_HASHPTE

Definition at line 57 of file pte-common.h.

#define _PAGE_HWWRITE   0

Definition at line 14 of file pte-common.h.

#define _PAGE_KERNEL_RO   0

Definition at line 45 of file pte-common.h.

#define _PAGE_KERNEL_ROX   (_PAGE_EXEC)

Definition at line 48 of file pte-common.h.

#define _PAGE_KERNEL_RW   (_PAGE_DIRTY | _PAGE_RW | _PAGE_HWWRITE)

Definition at line 51 of file pte-common.h.

#define _PAGE_KERNEL_RWX   (_PAGE_DIRTY | _PAGE_RW | _PAGE_HWWRITE | _PAGE_EXEC)

Definition at line 54 of file pte-common.h.

#define _PAGE_PSIZE   0

Definition at line 35 of file pte-common.h.

#define _PAGE_SAO   0

Definition at line 32 of file pte-common.h.

#define _PAGE_SHARED   0

Definition at line 11 of file pte-common.h.

#define _PAGE_WRITETHRU   0

Definition at line 26 of file pte-common.h.

#define _PMD_PRESENT_MASK   _PMD_PRESENT

Definition at line 38 of file pte-common.h.

#define _PMD_SIZE   0

Definition at line 41 of file pte-common.h.

#define _PTE_NONE_MASK   _PAGE_HPTEFLAGS

Definition at line 60 of file pte-common.h.

#define HAVE_PAGE_AGP

Definition at line 183 of file pte-common.h.

#define PAGE_AGP   (PAGE_KERNEL_NC)

Definition at line 182 of file pte-common.h.

#define PAGE_COPY   __pgprot(_PAGE_BASE | _PAGE_USER)

Definition at line 127 of file pte-common.h.

#define PAGE_COPY_X   __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)

Definition at line 128 of file pte-common.h.

#define PAGE_KERNEL   __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW)

Definition at line 151 of file pte-common.h.

#define PAGE_KERNEL_EXEC   PAGE_KERNEL_X

Definition at line 172 of file pte-common.h.

#define PAGE_KERNEL_NC
Value:

Definition at line 152 of file pte-common.h.

#define PAGE_KERNEL_NCG
Value:

Definition at line 154 of file pte-common.h.

#define PAGE_KERNEL_RO   __pgprot(_PAGE_BASE | _PAGE_KERNEL_RO)

Definition at line 157 of file pte-common.h.

#define PAGE_KERNEL_ROX   __pgprot(_PAGE_BASE | _PAGE_KERNEL_ROX)

Definition at line 158 of file pte-common.h.

#define PAGE_KERNEL_TEXT   PAGE_KERNEL_ROX

Definition at line 168 of file pte-common.h.

#define PAGE_KERNEL_X   __pgprot(_PAGE_BASE | _PAGE_KERNEL_RWX)

Definition at line 156 of file pte-common.h.

#define PAGE_NONE   __pgprot(_PAGE_BASE)

Definition at line 124 of file pte-common.h.

#define PAGE_PROT_BITS
Value:
(_PAGE_GUARDED | _PAGE_COHERENT | _PAGE_NO_CACHE | \
_PAGE_WRITETHRU | _PAGE_ENDIAN | _PAGE_4K_PFN | \
_PAGE_USER | _PAGE_ACCESSED | \

Definition at line 96 of file pte-common.h.

#define PAGE_READONLY   __pgprot(_PAGE_BASE | _PAGE_USER)

Definition at line 129 of file pte-common.h.

#define PAGE_READONLY_X   __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)

Definition at line 130 of file pte-common.h.

#define PAGE_SHARED   __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)

Definition at line 125 of file pte-common.h.

#define PAGE_SHARED_X   __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)

Definition at line 126 of file pte-common.h.

#define PMD_PAGE_SIZE (   pmd)    bad_call_to_PMD_PAGE_SIZE()

Definition at line 42 of file pte-common.h.

#define PTE_RPN_MASK   (~((1UL<<PTE_RPN_SHIFT)-1))

Definition at line 86 of file pte-common.h.

#define PTE_RPN_MAX   (1UL << (32 - PTE_RPN_SHIFT))

Definition at line 85 of file pte-common.h.

#define PTE_RPN_SHIFT   (PAGE_SHIFT)

Definition at line 75 of file pte-common.h.

#define pte_user (   val)    ((val & _PAGE_USER) == _PAGE_USER)

Definition at line 179 of file pte-common.h.

Function Documentation

unsigned long bad_call_to_PMD_PAGE_SIZE ( void  )