ReactOS  r73918
mm.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _MI_PAGING_LEVELS   2
 
#define MI_USER_PROBE_ADDRESS   (PVOID)0x7FFF0000
 
#define MI_DEFAULT_SYSTEM_RANGE_START   (PVOID)0x80000000
 
#define HYPER_SPACE   0xC0400000
 
#define HYPER_SPACE_END   0xC07FFFFF
 
#define MI_SYSTEM_CACHE_WS_START   (PVOID)0xC0C00000
 
#define MI_PAGED_POOL_START   (PVOID)0xE1000000
 
#define MI_NONPAGED_POOL_END   (PVOID)0xFFBE0000
 
#define MI_DEBUG_MAPPING   (PVOID)0xFFBFF000
 
#define PTE_BASE   0xC0000000
 
#define PDE_BASE   0xC0300000
 
#define PDE_TOP   0xC0300FFF
 
#define PTE_TOP   0xC03FFFFF
 
#define PTE_PER_PAGE   0x400
 
#define PDE_PER_PAGE   0x400
 
#define PPE_PER_PAGE   1
 
#define MI_SYSTEM_PTE_BASE   (PVOID)MiAddressToPte(NULL)
 
#define MM_HIGHEST_VAD_ADDRESS   (PVOID)((ULONG_PTR)MM_HIGHEST_USER_ADDRESS - (16 * PAGE_SIZE))
 
#define MI_MAPPING_RANGE_START   (ULONG)HYPER_SPACE
 
#define MI_MAPPING_RANGE_END
 
#define MI_DUMMY_PTE
 
#define MI_VAD_BITMAP
 
#define MI_WORKING_SET_LIST
 
#define MI_MIN_PAGES_FOR_NONPAGED_POOL_TUNING   ((255 * _1MB) >> PAGE_SHIFT)
 
#define MI_MIN_PAGES_FOR_SYSPTE_TUNING   ((19 * _1MB) >> PAGE_SHIFT)
 
#define MI_MIN_PAGES_FOR_SYSPTE_BOOST   ((32 * _1MB) >> PAGE_SHIFT)
 
#define MI_MIN_PAGES_FOR_SYSPTE_BOOST_BOOST   ((256 * _1MB) >> PAGE_SHIFT)
 
#define MI_MIN_INIT_PAGED_POOLSIZE   (32 * _1MB)
 
#define MI_MAX_INIT_NONPAGED_POOL_SIZE   (128 * _1MB)
 
#define MI_MAX_NONPAGED_POOL_SIZE   (128 * _1MB)
 
#define MI_SYSTEM_VIEW_SIZE   (32 * _1MB)
 
#define MI_SESSION_VIEW_SIZE   (48 * _1MB)
 
#define MI_SESSION_POOL_SIZE   (16 * _1MB)
 
#define MI_SESSION_IMAGE_SIZE   (8 * _1MB)
 
#define MI_SESSION_WORKING_SET_SIZE   (4 * _1MB)
 
#define MI_SESSION_SIZE
 
#define MI_MIN_ALLOCATION_FRAGMENT   (4 * _1KB)
 
#define MI_ALLOCATION_FRAGMENT   (64 * _1KB)
 
#define MI_MAX_ALLOCATION_FRAGMENT   (2 * _1MB)
 
#define MM_PTE_SOFTWARE_PROTECTION_BITS   5
 
#define MI_MIN_SECONDARY_COLORS   8
 
#define MI_SECONDARY_COLORS   64
 
#define MI_MAX_SECONDARY_COLORS   1024
 
#define MI_MAX_FREE_PAGE_LISTS   4
 
#define MI_HYPERSPACE_PTES   (256 - 1)
 
#define MI_ZERO_PTES   (32)
 
#define MI_MAX_ZERO_BITS   21
 
#define SESSION_POOL_LOOKASIDES   26
 
#define MM_EMPTY_PTE_LIST   ((ULONG)0xFFFFF)
 
#define MM_EMPTY_LIST   ((ULONG_PTR)-1)
 
#define PFN_FROM_PTE(v)   ((v)->u.Hard.PageFrameNumber)
 
#define MI_MAKE_DIRTY_PAGE(x)   ((x)->u.Hard.Dirty = 1)
 
#define MI_MAKE_CLEAN_PAGE(x)   ((x)->u.Hard.Dirty = 0)
 
#define MI_MAKE_ACCESSED_PAGE(x)   ((x)->u.Hard.Accessed = 1)
 
#define MI_PAGE_DISABLE_CACHE(x)   ((x)->u.Hard.CacheDisable = 1)
 
#define MI_PAGE_WRITE_THROUGH(x)   ((x)->u.Hard.WriteThrough = 1)
 
#define MI_PAGE_WRITE_COMBINED(x)   ((x)->u.Hard.WriteThrough = 0)
 
#define MI_IS_PAGE_LARGE(x)   ((x)->u.Hard.LargePage == 1)
 
#define MI_IS_PAGE_WRITEABLE(x)   ((x)->u.Hard.Write == 1)
 
#define MI_IS_PAGE_COPY_ON_WRITE(x)   ((x)->u.Hard.CopyOnWrite == 1)
 
#define MI_IS_PAGE_DIRTY(x)   ((x)->u.Hard.Dirty == 1)
 
#define MI_MAKE_OWNER_PAGE(x)   ((x)->u.Hard.Owner = 1)
 
#define MI_MAKE_WRITE_PAGE(x)   ((x)->u.Hard.Write = 1)
 
#define MI_WRITE_VALID_PPE   MI_WRITE_VALID_PTE
 
#define MiAddressToPte(x)   ((PMMPTE)(((((ULONG)(x)) >> 12) << 2) + PTE_BASE))
 
#define MiAddressToPde(x)   ((PMMPDE)(((((ULONG)(x)) >> 22) << 2) + PDE_BASE))
 
#define MiAddressToPteOffset(x)   ((((ULONG)(x)) << 10) >> 22)
 
#define MiAddressToPdeOffset(x)   (((ULONG)(x)) / (1024 * PAGE_SIZE))
 
#define MiGetPdeOffset   MiAddressToPdeOffset
 
#define MiPteToAddress(_Pte)   ((PVOID)((ULONG)(_Pte) << 10))
 
#define MiPdeToAddress(_Pde)   ((PVOID)((ULONG)(_Pde) << 20))
 
#define MiPdeToPte(_Pde)   ((PMMPTE)MiPteToAddress(_Pde))
 
#define MiPteToPde(_Pte)   ((PMMPDE)MiAddressToPte(_Pte))
 
#define MiIsPteOnPdeBoundary(PointerPte)   ((((ULONG_PTR)PointerPte) & (PAGE_SIZE - 1)) == 0)
 
#define MiProtoPteToPte(x)
 
#define MiSubsectionPteToSubsection(x)
 

Macro Definition Documentation

#define _MI_PAGING_LEVELS   2

Definition at line 9 of file mm.h.

#define HYPER_SPACE   0xC0400000

Definition at line 16 of file mm.h.

#define HYPER_SPACE_END   0xC07FFFFF

Definition at line 17 of file mm.h.

#define MI_ALLOCATION_FRAGMENT   (64 * _1KB)

Definition at line 69 of file mm.h.

#define MI_DEBUG_MAPPING   (PVOID)0xFFBFF000

Definition at line 25 of file mm.h.

#define MI_DEFAULT_SYSTEM_RANGE_START   (PVOID)0x80000000

Definition at line 14 of file mm.h.

#define MI_DUMMY_PTE
Value:
#define MI_MAPPING_RANGE_END
Definition: mm.h:42
uint32_t ULONG_PTR
Definition: typedefs.h:64
struct _MMPTE * PMMPTE
#define PAGE_SIZE
Definition: env_spec_w32.h:49

Definition at line 44 of file mm.h.

#define MI_HYPERSPACE_PTES   (256 - 1)

Definition at line 78 of file mm.h.

#define MI_IS_PAGE_COPY_ON_WRITE (   x)    ((x)->u.Hard.CopyOnWrite == 1)

Definition at line 104 of file mm.h.

#define MI_IS_PAGE_DIRTY (   x)    ((x)->u.Hard.Dirty == 1)

Definition at line 105 of file mm.h.

#define MI_IS_PAGE_LARGE (   x)    ((x)->u.Hard.LargePage == 1)

Definition at line 98 of file mm.h.

#define MI_IS_PAGE_WRITEABLE (   x)    ((x)->u.Hard.Write == 1)

Definition at line 100 of file mm.h.

#define MI_MAKE_ACCESSED_PAGE (   x)    ((x)->u.Hard.Accessed = 1)

Definition at line 94 of file mm.h.

#define MI_MAKE_CLEAN_PAGE (   x)    ((x)->u.Hard.Dirty = 0)

Definition at line 93 of file mm.h.

#define MI_MAKE_DIRTY_PAGE (   x)    ((x)->u.Hard.Dirty = 1)

Definition at line 92 of file mm.h.

#define MI_MAKE_OWNER_PAGE (   x)    ((x)->u.Hard.Owner = 1)

Definition at line 106 of file mm.h.

#define MI_MAKE_WRITE_PAGE (   x)    ((x)->u.Hard.Write = 1)

Definition at line 108 of file mm.h.

#define MI_MAPPING_RANGE_END
Value:
#define MI_HYPERSPACE_PTES
Definition: mm.h:78
#define PAGE_SIZE
Definition: env_spec_w32.h:49
#define MI_MAPPING_RANGE_START
Definition: mm.h:41

Definition at line 42 of file mm.h.

#define MI_MAPPING_RANGE_START   (ULONG)HYPER_SPACE

Definition at line 41 of file mm.h.

#define MI_MAX_ALLOCATION_FRAGMENT   (2 * _1MB)

Definition at line 70 of file mm.h.

#define MI_MAX_FREE_PAGE_LISTS   4

Definition at line 77 of file mm.h.

#define MI_MAX_INIT_NONPAGED_POOL_SIZE   (128 * _1MB)

Definition at line 57 of file mm.h.

#define MI_MAX_NONPAGED_POOL_SIZE   (128 * _1MB)

Definition at line 58 of file mm.h.

#define MI_MAX_SECONDARY_COLORS   1024

Definition at line 76 of file mm.h.

#define MI_MAX_ZERO_BITS   21

Definition at line 80 of file mm.h.

#define MI_MIN_ALLOCATION_FRAGMENT   (4 * _1KB)

Definition at line 68 of file mm.h.

#define MI_MIN_INIT_PAGED_POOLSIZE   (32 * _1MB)

Definition at line 56 of file mm.h.

#define MI_MIN_PAGES_FOR_NONPAGED_POOL_TUNING   ((255 * _1MB) >> PAGE_SHIFT)

Definition at line 52 of file mm.h.

#define MI_MIN_PAGES_FOR_SYSPTE_BOOST   ((32 * _1MB) >> PAGE_SHIFT)

Definition at line 54 of file mm.h.

#define MI_MIN_PAGES_FOR_SYSPTE_BOOST_BOOST   ((256 * _1MB) >> PAGE_SHIFT)

Definition at line 55 of file mm.h.

#define MI_MIN_PAGES_FOR_SYSPTE_TUNING   ((19 * _1MB) >> PAGE_SHIFT)

Definition at line 53 of file mm.h.

#define MI_MIN_SECONDARY_COLORS   8

Definition at line 74 of file mm.h.

#define MI_NONPAGED_POOL_END   (PVOID)0xFFBE0000

Definition at line 24 of file mm.h.

#define MI_PAGE_DISABLE_CACHE (   x)    ((x)->u.Hard.CacheDisable = 1)

Definition at line 95 of file mm.h.

#define MI_PAGE_WRITE_COMBINED (   x)    ((x)->u.Hard.WriteThrough = 0)

Definition at line 97 of file mm.h.

#define MI_PAGE_WRITE_THROUGH (   x)    ((x)->u.Hard.WriteThrough = 1)

Definition at line 96 of file mm.h.

#define MI_PAGED_POOL_START   (PVOID)0xE1000000

Definition at line 23 of file mm.h.

#define MI_SECONDARY_COLORS   64

Definition at line 75 of file mm.h.

#define MI_SESSION_IMAGE_SIZE   (8 * _1MB)

Definition at line 62 of file mm.h.

#define MI_SESSION_POOL_SIZE   (16 * _1MB)

Definition at line 61 of file mm.h.

#define MI_SESSION_SIZE
Value:
#define MI_SESSION_VIEW_SIZE
Definition: mm.h:60
#define MI_SESSION_WORKING_SET_SIZE
Definition: mm.h:63
#define MI_SESSION_IMAGE_SIZE
Definition: mm.h:62
#define MI_SESSION_POOL_SIZE
Definition: mm.h:61

Definition at line 64 of file mm.h.

#define MI_SESSION_VIEW_SIZE   (48 * _1MB)

Definition at line 60 of file mm.h.

#define MI_SESSION_WORKING_SET_SIZE   (4 * _1MB)

Definition at line 63 of file mm.h.

#define MI_SYSTEM_CACHE_WS_START   (PVOID)0xC0C00000

Definition at line 22 of file mm.h.

#define MI_SYSTEM_PTE_BASE   (PVOID)MiAddressToPte(NULL)

Definition at line 38 of file mm.h.

#define MI_SYSTEM_VIEW_SIZE   (32 * _1MB)

Definition at line 59 of file mm.h.

#define MI_USER_PROBE_ADDRESS   (PVOID)0x7FFF0000

Definition at line 13 of file mm.h.

#define MI_VAD_BITMAP
Value:
uint32_t ULONG_PTR
Definition: typedefs.h:64
struct _MMPTE * PMMPTE
#define MI_DUMMY_PTE
Definition: mm.h:44
#define PAGE_SIZE
Definition: env_spec_w32.h:49

Definition at line 46 of file mm.h.

#define MI_WORKING_SET_LIST
Value:
uint32_t ULONG_PTR
Definition: typedefs.h:64
struct _MMPTE * PMMPTE
#define PAGE_SIZE
Definition: env_spec_w32.h:49
#define MI_VAD_BITMAP
Definition: mm.h:46

Definition at line 48 of file mm.h.

#define MI_WRITE_VALID_PPE   MI_WRITE_VALID_PTE

Definition at line 114 of file mm.h.

#define MI_ZERO_PTES   (32)

Definition at line 79 of file mm.h.

#define MiAddressToPde (   x)    ((PMMPDE)(((((ULONG)(x)) >> 22) << 2) + PDE_BASE))

Definition at line 121 of file mm.h.

#define MiAddressToPdeOffset (   x)    (((ULONG)(x)) / (1024 * PAGE_SIZE))

Definition at line 129 of file mm.h.

#define MiAddressToPte (   x)    ((PMMPTE)(((((ULONG)(x)) >> 12) << 2) + PTE_BASE))

Definition at line 117 of file mm.h.

#define MiAddressToPteOffset (   x)    ((((ULONG)(x)) << 10) >> 22)

Definition at line 125 of file mm.h.

#define MiGetPdeOffset   MiAddressToPdeOffset

Definition at line 131 of file mm.h.

#define MiIsPteOnPdeBoundary (   PointerPte)    ((((ULONG_PTR)PointerPte) & (PAGE_SIZE - 1)) == 0)

Definition at line 142 of file mm.h.

#define MiPdeToAddress (   _Pde)    ((PVOID)((ULONG)(_Pde) << 20))

Definition at line 135 of file mm.h.

#define MiPdeToPte (   _Pde)    ((PMMPTE)MiPteToAddress(_Pde))

Definition at line 138 of file mm.h.

#define MiProtoPteToPte (   x)
Value:
(((x)->u.Proto.ProtoAddressHigh << 9) | (x)->u.Proto.ProtoAddressLow << 2))
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
uint32_t ULONG_PTR
Definition: typedefs.h:64
struct _MMPTE * PMMPTE
PVOID MmPagedPoolStart
Definition: miarm.h:552
INT x
Definition: msvc.h:62

Definition at line 148 of file mm.h.

#define MiPteToAddress (   _Pte)    ((PVOID)((ULONG)(_Pte) << 10))

Definition at line 134 of file mm.h.

#define MiPteToPde (   _Pte)    ((PMMPDE)MiAddressToPte(_Pte))

Definition at line 139 of file mm.h.

#define MiSubsectionPteToSubsection (   x)
Value:
((x)->u.Subsect.WhichPool == PagedPool) ? \
(((x)->u.Subsect.SubsectionAddressHigh << 7) | \
(x)->u.Subsect.SubsectionAddressLow << 3)) : \
(((x)->u.Subsect.SubsectionAddressHigh << 7) | \
(x)->u.Subsect.SubsectionAddressLow << 3))
ULONG_PTR MmSubsectionBase
Definition: section.c:138
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
PVOID MmNonPagedPoolEnd
Definition: mminit.c:99
uint32_t ULONG_PTR
Definition: typedefs.h:64
struct _MMPTE * PMMPTE
#define ULONG_PTR
Definition: config.h:101
INT x
Definition: msvc.h:62

Definition at line 155 of file mm.h.

#define MM_EMPTY_LIST   ((ULONG_PTR)-1)

Definition at line 85 of file mm.h.

#define MM_EMPTY_PTE_LIST   ((ULONG)0xFFFFF)

Definition at line 84 of file mm.h.

#define MM_HIGHEST_VAD_ADDRESS   (PVOID)((ULONG_PTR)MM_HIGHEST_USER_ADDRESS - (16 * PAGE_SIZE))

Definition at line 39 of file mm.h.

#define MM_PTE_SOFTWARE_PROTECTION_BITS   5

Definition at line 73 of file mm.h.

#define PDE_BASE   0xC0300000

Definition at line 29 of file mm.h.

Referenced by _MiAddressToPde().

#define PDE_PER_PAGE   0x400

Definition at line 34 of file mm.h.

#define PDE_TOP   0xC0300FFF

Definition at line 30 of file mm.h.

Referenced by MI_MAKE_HARDWARE_PTE_KERNEL(), and MiDbgDumpAddressSpace().

#define PFN_FROM_PTE (   v)    ((v)->u.Hard.PageFrameNumber)

Definition at line 89 of file mm.h.

#define PPE_PER_PAGE   1

Definition at line 35 of file mm.h.

#define PTE_BASE   0xC0000000

Definition at line 28 of file mm.h.

Referenced by _MiAddressToPte().

#define PTE_PER_PAGE   0x400

Definition at line 33 of file mm.h.

#define PTE_TOP   0xC03FFFFF

Definition at line 31 of file mm.h.

Referenced by MiDbgDumpAddressSpace(), and MiInitSystemMemoryAreas().

#define SESSION_POOL_LOOKASIDES   26

Definition at line 81 of file mm.h.