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_WE   (1<<0) /* page is write-enabled */
 
#define _PAGE_SILENT_WRITE   (1<<0) /* synonym */
 
#define _PAGE_KERNEL   (1<<1) /* page is kernel only */
 
#define _PAGE_VALID   (1<<2) /* page is valid */
 
#define _PAGE_SILENT_READ   (1<<2) /* synonym */
 
#define _PAGE_GLOBAL   (1<<3) /* global page - context is ignored */
 
#define _PAGE_NO_CACHE   (1<<31) /* part of the uncached memory map */
 
#define _PAGE_PRESENT   (1<<4) /* page present in memory */
 
#define _PAGE_FILE   (1<<5) /* set: pagecache, unset: swap (when !PRESENT) */
 
#define _PAGE_ACCESSED   (1<<5) /* simulated in software using valid bit */
 
#define _PAGE_MODIFIED   (1<<6) /* simulated in software using we bit */
 
#define _PAGE_READ   (1<<7) /* read-enabled */
 
#define _PAGE_WRITE   (1<<8) /* 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_COPY   __pgprot(_PAGE_PRESENT | __READABLE)
 
#define PAGE_READONLY   __pgprot(_PAGE_PRESENT | __READABLE)
 
#define PAGE_KERNEL
 
#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
 
#define __P101   PAGE_READONLY
 
#define __P110   PAGE_COPY
 
#define __P111   PAGE_COPY
 
#define __S000   PAGE_NONE
 
#define __S001   PAGE_READONLY
 
#define __S010   PAGE_SHARED
 
#define __S011   PAGE_SHARED
 
#define __S100   PAGE_READONLY
 
#define __S101   PAGE_READONLY
 
#define __S110   PAGE_SHARED
 
#define __S111   PAGE_SHARED
 
#define PTE_FILE_MAX_BITS   26
 

Macro Definition Documentation

#define __P000   PAGE_NONE

Definition at line 90 of file mmu.h.

#define __P001   PAGE_READONLY

Definition at line 91 of file mmu.h.

#define __P010   PAGE_COPY

Definition at line 92 of file mmu.h.

#define __P011   PAGE_COPY

Definition at line 93 of file mmu.h.

#define __P100   PAGE_READONLY

Definition at line 94 of file mmu.h.

#define __P101   PAGE_READONLY

Definition at line 95 of file mmu.h.

#define __P110   PAGE_COPY

Definition at line 96 of file mmu.h.

#define __P111   PAGE_COPY

Definition at line 97 of file mmu.h.

#define __READABLE   (_PAGE_READ | _PAGE_SILENT_READ | _PAGE_ACCESSED)

Definition at line 69 of file mmu.h.

#define __S000   PAGE_NONE

Definition at line 99 of file mmu.h.

#define __S001   PAGE_READONLY

Definition at line 100 of file mmu.h.

#define __S010   PAGE_SHARED

Definition at line 101 of file mmu.h.

#define __S011   PAGE_SHARED

Definition at line 102 of file mmu.h.

#define __S100   PAGE_READONLY

Definition at line 103 of file mmu.h.

#define __S101   PAGE_READONLY

Definition at line 104 of file mmu.h.

#define __S110   PAGE_SHARED

Definition at line 105 of file mmu.h.

#define __S111   PAGE_SHARED

Definition at line 106 of file mmu.h.

#define __WRITEABLE   (_PAGE_WRITE | _PAGE_SILENT_WRITE | _PAGE_MODIFIED)

Definition at line 70 of file mmu.h.

#define _KERNPG_TABLE   (_PAGE_TABLE | _PAGE_KERNEL)

Definition at line 82 of file mmu.h.

#define _PAGE_ACCESSED   (1<<5) /* simulated in software using valid bit */

Definition at line 62 of file mmu.h.

#define _PAGE_CHG_MASK   (PAGE_MASK | _PAGE_ACCESSED | _PAGE_MODIFIED)

Definition at line 73 of file mmu.h.

#define _PAGE_FILE   (1<<5) /* set: pagecache, unset: swap (when !PRESENT) */

Definition at line 61 of file mmu.h.

#define _PAGE_GLOBAL   (1<<3) /* global page - context is ignored */

Definition at line 55 of file mmu.h.

#define _PAGE_KERNEL   (1<<1) /* page is kernel only */

Definition at line 52 of file mmu.h.

#define _PAGE_MODIFIED   (1<<6) /* simulated in software using we bit */

Definition at line 63 of file mmu.h.

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

Definition at line 56 of file mmu.h.

#define _PAGE_PRESENT   (1<<4) /* page present in memory */

Definition at line 60 of file mmu.h.

#define _PAGE_READ   (1<<7) /* read-enabled */

Definition at line 64 of file mmu.h.

#define _PAGE_SILENT_READ   (1<<2) /* synonym */

Definition at line 54 of file mmu.h.

#define _PAGE_SILENT_WRITE   (1<<0) /* synonym */

Definition at line 51 of file mmu.h.

#define _PAGE_TABLE   (_PAGE_PRESENT | __READABLE | __WRITEABLE)

Definition at line 72 of file mmu.h.

#define _PAGE_VALID   (1<<2) /* page is valid */

Definition at line 53 of file mmu.h.

#define _PAGE_WE   (1<<0) /* page is write-enabled */

Definition at line 50 of file mmu.h.

#define _PAGE_WRITE   (1<<8) /* write-enabled */

Definition at line 65 of file mmu.h.

#define KSEG_0   0x00000000UL

Definition at line 32 of file mmu.h.

#define KSEG_1   0x10000000UL

Definition at line 31 of file mmu.h.

#define KSEG_2   0x20000000UL

Definition at line 30 of file mmu.h.

#define KSEG_3   0x30000000UL

Definition at line 29 of file mmu.h.

#define KSEG_4   0x40000000UL

Definition at line 28 of file mmu.h.

#define KSEG_5   0x50000000UL

Definition at line 27 of file mmu.h.

#define KSEG_6   0x60000000UL

Definition at line 26 of file mmu.h.

#define KSEG_7   0x70000000UL

Definition at line 25 of file mmu.h.

#define KSEG_8   0x80000000UL

Definition at line 24 of file mmu.h.

#define KSEG_9   0x90000000UL

Definition at line 23 of file mmu.h.

#define KSEG_A   0xa0000000UL

Definition at line 22 of file mmu.h.

#define KSEG_B   0xb0000000UL

Definition at line 21 of file mmu.h.

#define KSEG_C   0xc0000000UL

Definition at line 20 of file mmu.h.

#define KSEG_D   0xd0000000UL

Definition at line 19 of file mmu.h.

#define KSEG_E   0xe0000000UL

Definition at line 18 of file mmu.h.

#define KSEG_F   0xf0000000UL

Definition at line 17 of file mmu.h.

#define PAGE_COPY   __pgprot(_PAGE_PRESENT | __READABLE)

Definition at line 78 of file mmu.h.

#define PAGE_KERNEL
Value:

Definition at line 80 of file mmu.h.

#define PAGE_NONE   __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED)

Definition at line 75 of file mmu.h.

#define PAGE_READONLY   __pgprot(_PAGE_PRESENT | __READABLE)

Definition at line 79 of file mmu.h.

#define PAGE_SHARED
Value:

Definition at line 76 of file mmu.h.

#define PTE_FILE_MAX_BITS   26

Definition at line 108 of file mmu.h.