Skip to content

Commit

Permalink
Fix GCC build
Browse files Browse the repository at this point in the history
  • Loading branch information
Labutin Ivan committed Nov 13, 2017
1 parent 2a7049f commit 630bc26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ntoskrnl/mm/ARM3/pagfault.c
Expand Up @@ -597,6 +597,7 @@ MiResolveDemandZeroFault(IN PVOID Address,
BOOLEAN NeedZero = FALSE, HaveLock = FALSE;
ULONG Color;
PMMPFN Pfn1;
PMMPTE PtePte;
DPRINT("ARM3 Demand Zero Page Fault Handler for address: %p in process: %p\n",
Address,
Process);
Expand Down Expand Up @@ -727,7 +728,7 @@ MiResolveDemandZeroFault(IN PVOID Address,

/* Write it */
/* HACK: mark it as writeable before wiring to it */
PMMPTE PtePte = MiAddressToPte(PointerPte);
PtePte = MiAddressToPte(PointerPte);
PtePte->u.Hard.Write = 1;
MI_WRITE_VALID_PTE(PointerPte, TempPte);

Expand Down Expand Up @@ -1664,6 +1665,7 @@ MmArmAccessFault(IN BOOLEAN StoreInstruction,
ULONG Color;
BOOLEAN IsSessionAddress;
PMMPFN Pfn1;
PMMPTE PtePte;
DPRINT("ARM3 FAULT AT: %p\n", Address);

/* Check for page fault on high IRQL */
Expand Down Expand Up @@ -2112,7 +2114,7 @@ _WARN("Session space stuff is not implemented yet!")

/* Write a demand-zero PDE */
/* HACK: make it writeable before writing */
PMMPTE PtePte = MiAddressToPte(PointerPde);
PtePte = MiAddressToPte(PointerPde);
PtePte->u.Hard.Write = 1;
MI_WRITE_INVALID_PDE(PointerPde, DemandZeroPde);

Expand Down

0 comments on commit 630bc26

Please sign in to comment.