mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 13:38:19 +00:00
[NTOSKRNL]
- ObReferenceObject() does NOT return an NTSTATUS. It returns the new reference count. Remove pointless NT_SUCCESS check - Enable interrupts in amd54 page fault handler before calling MmAccessFault - Add missing MmDecommittedPte for amd64 svn path=/trunk/; revision=56265
This commit is contained in:
parent
3bdad064e3
commit
03f0cf904e
3 changed files with 10 additions and 7 deletions
8
reactos/ntoskrnl/cache/section/swapout.c
vendored
8
reactos/ntoskrnl/cache/section/swapout.c
vendored
|
@ -349,13 +349,7 @@ MmpPageOutPhysicalAddress(PFN_NUMBER Page)
|
|||
ExReleaseFastMutex(&RmapListLock);
|
||||
goto bail;
|
||||
}
|
||||
Status = ObReferenceObject(Process);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT("bail\n");
|
||||
ExReleaseFastMutex(&RmapListLock);
|
||||
goto bail;
|
||||
}
|
||||
ObReferenceObject(Process);
|
||||
ProcRef = TRUE;
|
||||
AddressSpace = &Process->Vm;
|
||||
}
|
||||
|
|
|
@ -416,6 +416,9 @@ FUNC KiPageFault
|
|||
mov rdx, cr2
|
||||
mov [rbp + KTRAP_FRAME_FaultAddress], rdx
|
||||
|
||||
/* Enable interrupts for the page fault handler */
|
||||
sti
|
||||
|
||||
/* Call page fault handler */
|
||||
mov ecx, [rbp + KTRAP_FRAME_ErrorCode] // StoreInstruction
|
||||
and ecx, 1
|
||||
|
@ -429,6 +432,9 @@ FUNC KiPageFault
|
|||
test eax, eax
|
||||
jge PageFaultReturn
|
||||
|
||||
/* Disable interrupts again for the debugger */
|
||||
cli
|
||||
|
||||
/* Set parameter 1 to error code */
|
||||
mov r9d, [rbp + KTRAP_FRAME_ErrorCode]
|
||||
|
||||
|
|
|
@ -34,6 +34,9 @@ MMPTE DemandZeroPte = {{MM_READWRITE << MM_PTE_SOFTWARE_PROTECTION_BITS}};
|
|||
MMPTE PrototypePte = {{(MM_READWRITE << MM_PTE_SOFTWARE_PROTECTION_BITS) |
|
||||
PTE_PROTOTYPE | (MI_PTE_LOOKUP_NEEDED << 32)}};
|
||||
|
||||
/* Template PTE for decommited page */
|
||||
MMPTE MmDecommittedPte = {{MM_DECOMMIT << MM_PTE_SOFTWARE_PROTECTION_BITS}};
|
||||
|
||||
/* Address ranges */
|
||||
PVOID MiSessionViewEnd;
|
||||
PVOID MiSystemPteSpaceStart;
|
||||
|
|
Loading…
Reference in a new issue