mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[NTOS]: Define the template prototype PTE.
svn path=/trunk/; revision=48199
This commit is contained in:
parent
155c1e701b
commit
9e489a9b8e
2 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,9 @@ MMPTE ValidKernelPte = {.u.Hard.Valid = 1, .u.Hard.Write = 1, .u.Hard.Dirty = 1,
|
||||||
/* Template PDE for a demand-zero page */
|
/* Template PDE for a demand-zero page */
|
||||||
MMPDE DemandZeroPde = {.u.Long = (MM_READWRITE << MM_PTE_SOFTWARE_PROTECTION_BITS)};
|
MMPDE DemandZeroPde = {.u.Long = (MM_READWRITE << MM_PTE_SOFTWARE_PROTECTION_BITS)};
|
||||||
|
|
||||||
|
/* Template PTE for prototype page */
|
||||||
|
MMPTE PrototypePte = {.u.Long = (MM_READWRITE << MM_PTE_SOFTWARE_PROTECTION_BITS) | PTE_PROTOTYPE | 0xFFFFF000};
|
||||||
|
|
||||||
/* PRIVATE FUNCTIONS **********************************************************/
|
/* PRIVATE FUNCTIONS **********************************************************/
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
|
@ -129,6 +129,7 @@
|
||||||
#define PTE_WRITECOPY 0x200
|
#define PTE_WRITECOPY 0x200
|
||||||
#define PTE_EXECUTE_READWRITE 0x0
|
#define PTE_EXECUTE_READWRITE 0x0
|
||||||
#define PTE_EXECUTE_WRITECOPY 0x200
|
#define PTE_EXECUTE_WRITECOPY 0x200
|
||||||
|
#define PTE_PROTOTYPE 0x400
|
||||||
//
|
//
|
||||||
// Cache flags
|
// Cache flags
|
||||||
//
|
//
|
||||||
|
@ -381,6 +382,7 @@ extern MMPTE HyperTemplatePte;
|
||||||
extern MMPDE ValidKernelPde;
|
extern MMPDE ValidKernelPde;
|
||||||
extern MMPTE ValidKernelPte;
|
extern MMPTE ValidKernelPte;
|
||||||
extern MMPDE DemandZeroPde;
|
extern MMPDE DemandZeroPde;
|
||||||
|
extern MMPTE PrototypePte;
|
||||||
extern BOOLEAN MmLargeSystemCache;
|
extern BOOLEAN MmLargeSystemCache;
|
||||||
extern BOOLEAN MmZeroPageFile;
|
extern BOOLEAN MmZeroPageFile;
|
||||||
extern BOOLEAN MmProtectFreedNonPagedPool;
|
extern BOOLEAN MmProtectFreedNonPagedPool;
|
||||||
|
@ -483,6 +485,7 @@ extern PVOID MiSessionImageEnd;
|
||||||
extern PMMPTE MiHighestUserPte;
|
extern PMMPTE MiHighestUserPte;
|
||||||
extern PMMPDE MiHighestUserPde;
|
extern PMMPDE MiHighestUserPde;
|
||||||
extern PFN_NUMBER MmSystemPageDirectory[PD_COUNT];
|
extern PFN_NUMBER MmSystemPageDirectory[PD_COUNT];
|
||||||
|
extern PMMPTE MmSharedUserDataPte;
|
||||||
|
|
||||||
#define MI_PFN_TO_PFNENTRY(x) (&MmPfnDatabase[1][x])
|
#define MI_PFN_TO_PFNENTRY(x) (&MmPfnDatabase[1][x])
|
||||||
#define MI_PFNENTRY_TO_PFN(x) (x - MmPfnDatabase[1])
|
#define MI_PFNENTRY_TO_PFN(x) (x - MmPfnDatabase[1])
|
||||||
|
|
Loading…
Reference in a new issue