Skip to content

Commit cbfb678

Browse files
author
Sir Richard
committed
[NTOS]: Define the Decommitted PTE structure.
svn path=/trunk/; revision=55922
1 parent 1401fbe commit cbfb678

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

reactos/ntoskrnl/mm/ARM3/i386/init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ MMPTE DemandZeroPte = {{MM_READWRITE << MM_PTE_SOFTWARE_PROTECTION_BITS}};
2929
MMPTE PrototypePte = {{(MM_READWRITE << MM_PTE_SOFTWARE_PROTECTION_BITS) |
3030
PTE_PROTOTYPE | (MI_PTE_LOOKUP_NEEDED << PAGE_SHIFT)}};
3131

32+
/* Template PTE for decommited page */
33+
MMPTE MmDecommittedPte = {{MM_DECOMMIT << MM_PTE_SOFTWARE_PROTECTION_BITS}};
3234

3335
/* PRIVATE FUNCTIONS **********************************************************/
3436

reactos/ntoskrnl/mm/ARM3/miarm.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ extern MMPTE ValidKernelPte;
479479
extern MMPDE DemandZeroPde;
480480
extern MMPTE DemandZeroPte;
481481
extern MMPTE PrototypePte;
482+
extern MMPTE MmDecommittedPte;
482483
extern BOOLEAN MmLargeSystemCache;
483484
extern BOOLEAN MmZeroPageFile;
484485
extern BOOLEAN MmProtectFreedNonPagedPool;
@@ -1329,6 +1330,12 @@ MiDeleteSystemPageableVm(
13291330
OUT PPFN_NUMBER ValidPages
13301331
);
13311332

1333+
ULONG
1334+
NTAPI
1335+
MiGetPageProtection(
1336+
IN PMMPTE PointerPte
1337+
);
1338+
13321339
PLDR_DATA_TABLE_ENTRY
13331340
NTAPI
13341341
MiLookupDataTableEntry(

0 commit comments

Comments
 (0)