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

Go to the source code of this file.

Data Structures

struct  mm_context_t
 

Macros

#define KSEG_F   0xf0000000UL
 
#define KSEG_E   0xe0000000UL
 
#define KSEG_D   0xd0000000UL
 
#define KSEG_C   0xc0000000UL
 
#define KSEG_B   0xb0000000UL
 
#define KSEG_A   0xa0000000UL
 
#define KSEG_9   0x90000000UL
 
#define KSEG_8   0x80000000UL
 
#define KSEG_7   0x70000000UL
 
#define KSEG_6   0x60000000UL
 
#define KSEG_5   0x50000000UL
 
#define KSEG_4   0x40000000UL
 
#define KSEG_3   0x30000000UL
 
#define KSEG_2   0x20000000UL
 
#define KSEG_1   0x10000000UL
 
#define KSEG_0   0x00000000UL
 
#define _PAGE_EXECUTE   (1 << 0) /* Execution bit. */
 
#define _PAGE_WE   (1 << 1) /* Write bit. */
 
#define _PAGE_SILENT_WRITE   (1 << 1) /* Same as above. */
 
#define _PAGE_KERNEL   (1 << 2) /* Kernel mode page. */
 
#define _PAGE_VALID   (1 << 3) /* Page is valid. */
 
#define _PAGE_SILENT_READ   (1 << 3) /* Same as above. */
 
#define _PAGE_GLOBAL   (1 << 4) /* Global page. */
 
#define _PAGE_NO_CACHE   (1 << 31) /* part of the uncached memory map */
 
#define _PAGE_PRESENT   (1 << 5) /* Page is present in memory. */
 
#define _PAGE_FILE   (1 << 6) /* 1=pagecache, 0=swap (when !present) */
 
#define _PAGE_ACCESSED   (1 << 6) /* Simulated in software using valid bit. */
 
#define _PAGE_MODIFIED   (1 << 7) /* Simulated in software using we bit. */
 
#define _PAGE_READ   (1 << 8) /* Read enabled. */
 
#define _PAGE_WRITE   (1 << 9) /* Write enabled. */
 
#define __READABLE   (_PAGE_READ | _PAGE_SILENT_READ | _PAGE_ACCESSED)
 
#define __WRITEABLE   (_PAGE_WRITE | _PAGE_SILENT_WRITE | _PAGE_MODIFIED)
 
#define _PAGE_TABLE   (_PAGE_PRESENT | __READABLE | __WRITEABLE)
 
#define _PAGE_CHG_MASK   (PAGE_MASK | _PAGE_ACCESSED | _PAGE_MODIFIED)
 
#define PAGE_NONE   __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED)
 
#define PAGE_SHARED
 
#define PAGE_SHARED_EXEC
 
#define PAGE_READONLY   __pgprot(_PAGE_PRESENT | __READABLE)
 
#define PAGE_READONLY_EXEC   __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_EXECUTE | _PAGE_ACCESSED)
 
#define PAGE_COPY   __pgprot(_PAGE_PRESENT | __READABLE)
 
#define PAGE_COPY_EXEC   __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_EXECUTE)
 
#define PAGE_KERNEL
 
#define PAGE_KERNEL_EXEC
 
#define PAGE_SIGNAL_TRAMPOLINE
 
#define _KERNPG_TABLE   (_PAGE_TABLE | _PAGE_KERNEL)
 
#define __P000   PAGE_NONE
 
#define __P001   PAGE_READONLY
 
#define __P010   PAGE_COPY
 
#define __P011   PAGE_COPY
 
#define __P100   PAGE_READONLY_EXEC
 
#define __P101   PAGE_READONLY_EXEC
 
#define __P110   PAGE_COPY_EXEC
 
#define __P111   PAGE_COPY_EXEC
 
#define __S000   PAGE_NONE
 
#define __S001   PAGE_READONLY
 
#define __S010   PAGE_SHARED
 
#define __S011   PAGE_SHARED
 
#define __S100   PAGE_READONLY_EXEC
 
#define __S101   PAGE_READONLY_EXEC
 
#define __S110   PAGE_SHARED_EXEC
 
#define __S111   PAGE_SHARED_EXEC
 
#define PTE_FILE_MAX_BITS   25
 

Macro Definition Documentation

#define __P000   PAGE_NONE

Definition at line 93 of file mmu.h.

#define __P001   PAGE_READONLY

Definition at line 94 of file mmu.h.

#define __P010   PAGE_COPY

Definition at line 95 of file mmu.h.

#define __P011   PAGE_COPY

Definition at line 96 of file mmu.h.

#define __P100   PAGE_READONLY_EXEC

Definition at line 97 of file mmu.h.

#define __P101   PAGE_READONLY_EXEC

Definition at line 98 of file mmu.h.

#define __P110   PAGE_COPY_EXEC

Definition at line 99 of file mmu.h.

#define __P111   PAGE_COPY_EXEC

Definition at line 100 of file mmu.h.

#define __READABLE   (_PAGE_READ | _PAGE_SILENT_READ | _PAGE_ACCESSED)

Definition at line 63 of file mmu.h.

#define __S000   PAGE_NONE

Definition at line 102 of file mmu.h.

#define __S001   PAGE_READONLY

Definition at line 103 of file mmu.h.

#define __S010   PAGE_SHARED

Definition at line 104 of file mmu.h.

#define __S011   PAGE_SHARED

Definition at line 105 of file mmu.h.

#define __S100   PAGE_READONLY_EXEC

Definition at line 106 of file mmu.h.

#define __S101   PAGE_READONLY_EXEC

Definition at line 107 of file mmu.h.

#define __S110   PAGE_SHARED_EXEC

Definition at line 108 of file mmu.h.

#define __S111   PAGE_SHARED_EXEC

Definition at line 109 of file mmu.h.

#define __WRITEABLE   (_PAGE_WRITE | _PAGE_SILENT_WRITE | _PAGE_MODIFIED)

Definition at line 64 of file mmu.h.

#define _KERNPG_TABLE   (_PAGE_TABLE | _PAGE_KERNEL)

Definition at line 87 of file mmu.h.

#define _PAGE_ACCESSED   (1 << 6) /* Simulated in software using valid bit. */

Definition at line 57 of file mmu.h.

#define _PAGE_CHG_MASK   (PAGE_MASK | _PAGE_ACCESSED | _PAGE_MODIFIED)

Definition at line 67 of file mmu.h.

#define _PAGE_EXECUTE   (1 << 0) /* Execution bit. */

Definition at line 41 of file mmu.h.

#define _PAGE_FILE   (1 << 6) /* 1=pagecache, 0=swap (when !present) */

Definition at line 56 of file mmu.h.

#define _PAGE_GLOBAL   (1 << 4) /* Global page. */

Definition at line 47 of file mmu.h.

#define _PAGE_KERNEL   (1 << 2) /* Kernel mode page. */

Definition at line 44 of file mmu.h.

#define _PAGE_MODIFIED   (1 << 7) /* Simulated in software using we bit. */

Definition at line 58 of file mmu.h.

#define _PAGE_NO_CACHE   (1 << 31) /* part of the uncached memory map */

Definition at line 48 of file mmu.h.

#define _PAGE_PRESENT   (1 << 5) /* Page is present in memory. */

Definition at line 55 of file mmu.h.

#define _PAGE_READ   (1 << 8) /* Read enabled. */

Definition at line 59 of file mmu.h.

#define _PAGE_SILENT_READ   (1 << 3) /* Same as above. */

Definition at line 46 of file mmu.h.

#define _PAGE_SILENT_WRITE   (1 << 1) /* Same as above. */

Definition at line 43 of file mmu.h.

#define _PAGE_TABLE   (_PAGE_PRESENT | __READABLE | __WRITEABLE)

Definition at line 66 of file mmu.h.

#define _PAGE_VALID   (1 << 3) /* Page is valid. */

Definition at line 45 of file mmu.h.

#define _PAGE_WE   (1 << 1) /* Write bit. */

Definition at line 42 of file mmu.h.

#define _PAGE_WRITE   (1 << 9) /* Write enabled. */

Definition at line 60 of file mmu.h.

#define KSEG_0   0x00000000UL

Definition at line 26 of file mmu.h.

#define KSEG_1   0x10000000UL

Definition at line 25 of file mmu.h.

#define KSEG_2   0x20000000UL

Definition at line 24 of file mmu.h.

#define KSEG_3   0x30000000UL

Definition at line 23 of file mmu.h.

#define KSEG_4   0x40000000UL

Definition at line 22 of file mmu.h.

#define KSEG_5   0x50000000UL

Definition at line 21 of file mmu.h.

#define KSEG_6   0x60000000UL

Definition at line 20 of file mmu.h.

#define KSEG_7   0x70000000UL

Definition at line 19 of file mmu.h.

#define KSEG_8   0x80000000UL

Definition at line 18 of file mmu.h.

#define KSEG_9   0x90000000UL

Definition at line 17 of file mmu.h.

#define KSEG_A   0xa0000000UL

Definition at line 16 of file mmu.h.

#define KSEG_B   0xb0000000UL

Definition at line 15 of file mmu.h.

#define KSEG_C   0xc0000000UL

Definition at line 14 of file mmu.h.

#define KSEG_D   0xd0000000UL

Definition at line 13 of file mmu.h.

#define KSEG_E   0xe0000000UL

Definition at line 12 of file mmu.h.

#define KSEG_F   0xf0000000UL

Definition at line 11 of file mmu.h.

#define PAGE_COPY   __pgprot(_PAGE_PRESENT | __READABLE)

Definition at line 78 of file mmu.h.

#define PAGE_COPY_EXEC   __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_EXECUTE)

Definition at line 79 of file mmu.h.

#define PAGE_KERNEL
Value:

Definition at line 80 of file mmu.h.

#define PAGE_KERNEL_EXEC
#define PAGE_NONE   __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED)

Definition at line 69 of file mmu.h.

#define PAGE_READONLY   __pgprot(_PAGE_PRESENT | __READABLE)

Definition at line 75 of file mmu.h.

#define PAGE_READONLY_EXEC   __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_EXECUTE | _PAGE_ACCESSED)

Definition at line 76 of file mmu.h.

#define PAGE_SHARED
Value:

Definition at line 70 of file mmu.h.

#define PAGE_SHARED_EXEC
Value:

Definition at line 72 of file mmu.h.

#define PAGE_SIGNAL_TRAMPOLINE
Value:

Definition at line 84 of file mmu.h.

#define PTE_FILE_MAX_BITS   25

Definition at line 111 of file mmu.h.