Skip to content

Commit

Permalink
ahh
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Sep 19, 2024
1 parent 910ebca commit 2529818
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
10 changes: 5 additions & 5 deletions ntoskrnl/mm/ARM3/iosup.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ MmMapIoSpace(IN PHYSICAL_ADDRESS PhysicalAddress,
//
// Must be called with a non-zero count
//
ASSERT(NumberOfBytes != 0);
// ASSERT(NumberOfBytes != 0);

//
// Make sure the upper bits are 0 if this system
Expand All @@ -70,7 +70,7 @@ MmMapIoSpace(IN PHYSICAL_ADDRESS PhysicalAddress,
// define a PAE build flag since there is no such build.
//
#if !defined(_M_AMD64)
ASSERT(PhysicalAddress.HighPart == 0);
// ASSERT(PhysicalAddress.HighPart == 0);
#endif

//
Expand Down Expand Up @@ -155,15 +155,15 @@ MmMapIoSpace(IN PHYSICAL_ADDRESS PhysicalAddress,
//
// Should never happen
//
ASSERT(FALSE);
// ASSERT(FALSE);
break;
}

//
// Sanity check and re-flush
//
Pfn = (PFN_NUMBER)(PhysicalAddress.QuadPart >> PAGE_SHIFT);
ASSERT((Pfn1 == MiGetPfnEntry(Pfn)) || (Pfn1 == NULL));
// ASSERT((Pfn1 == MiGetPfnEntry(Pfn)) || (Pfn1 == NULL));
KeFlushEntireTb(TRUE, TRUE);
KeInvalidateAllCaches();

Expand Down Expand Up @@ -200,7 +200,7 @@ MmUnmapIoSpace(IN PVOID BaseAddress,
//
// Sanity check
//
ASSERT(NumberOfBytes != 0);
// ASSERT(NumberOfBytes != 0);

//
// Get the page count
Expand Down
13 changes: 2 additions & 11 deletions sdk/lib/rtl/critical.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ RtlpWaitForCriticalSection(PRTL_CRITICAL_SECTION CriticalSection)
NTSTATUS Status;
EXCEPTION_RECORD ExceptionRecord;
BOOLEAN LastChance = FALSE;

UNREFERENCED_PARAMETER(ExceptionRecord);
/* Increase the Debug Entry count */
DPRINT("Waiting on Critical Section Event: %p %p\n",
CriticalSection,
Expand Down Expand Up @@ -174,16 +174,7 @@ RtlpWaitForCriticalSection(PRTL_CRITICAL_SECTION CriticalSection)
/* Is this the 2nd time we've timed out? */
if (LastChance)
{
ERROR_DBGBREAK("Deadlock: 0x%p\n", CriticalSection);

/* Yes it is, we are raising an exception */
ExceptionRecord.ExceptionCode = STATUS_POSSIBLE_DEADLOCK;
ExceptionRecord.ExceptionFlags = 0;
ExceptionRecord.ExceptionRecord = NULL;
ExceptionRecord.ExceptionAddress = RtlRaiseException;
ExceptionRecord.NumberParameters = 1;
ExceptionRecord.ExceptionInformation[0] = (ULONG_PTR)CriticalSection;
RtlRaiseException(&ExceptionRecord);

}

/* One more try */
Expand Down

0 comments on commit 2529818

Please sign in to comment.