and in some cases, return an adequate value. In some places however, I add an ASSERT(FALSE); before keeping the while (TRUE); in critical regions.
(Only x86, as well as in r58110). More ASSERTS (in debug mode) or BSODs may appear, instead of having hung threads.
Part 1-bis/2
svn path=/trunk/; revision=58111
/* FIXME: TODO */
DPRINT1("ERROR: Too many references\n");
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return FALSE;
}
{
LARGE_INTEGER Result = {{0}};
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return Result;
}
OUT PIO_STATUS_BLOCK IoStatus)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
}
BOOLEAN
IN PVOID Buffer)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
}
BOOLEAN
IN UCHAR Retrying)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return FALSE;
}
IN BOOLEAN Retrying)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
}
/* EOF */
IN ULONG DirtyPageThreshold)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
}
/*
IN BOOLEAN DisableWriteBehind)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
}
VOID
{
LARGE_INTEGER Result = {{0}};
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return Result;
}
\f
CcIsThereDirtyData(IN PVPB Vpb)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return FALSE;
}
{
LARGE_INTEGER Result = {{0}};
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return Result;
}
{ \
/* Not yet handled */ \
UNIMPLEMENTED; \
- while (TRUE); \
- return TRUE; \
+ ASSERT(FALSE); /* while (TRUE); */ \
+ return FALSE; \
}
C_ASSERT(NPX_FRAME_LENGTH == sizeof(FX_SAVE_AREA));
{
/* We should never get this yet */
DPRINT1("Reparse support not yet present!\n");
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
+ return;
}
}
#else
/* Not implemented yet. */
DPRINT1("Not supported!\n");
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
#endif
}
#define PIP_RETURN_DATA(x, y) {ReturnLength = x; Data = y; Status = STATUS_SUCCESS; break;}
#define PIP_REGISTRY_DATA(x, y) {ValueName = x; ValueType = y; break;}
-#define PIP_UNIMPLEMENTED() {UNIMPLEMENTED; ASSERT(FALSE); break;} // while(TRUE);
+#define PIP_UNIMPLEMENTED() {UNIMPLEMENTED; ASSERT(FALSE); /* while (TRUE); */ break;}
/*
* @implemented
OUT PULONG ActualLength)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return STATUS_UNSUCCESSFUL;
}
OUT PULONG ActualLength)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return STATUS_UNSUCCESSFUL;
}
KdpSysCheckLowMemory(IN ULONG Flags)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return STATUS_UNSUCCESSFUL;
}
KdpAllowDisable(VOID)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return STATUS_ACCESS_DENIED;
}
IN PCONTEXT Context)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
}
VOID
IN PCONTEXT Context)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
}
NTSTATUS
OUT PLARGE_INTEGER MsrValue)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return STATUS_UNSUCCESSFUL;
}
IN PLARGE_INTEGER MsrValue)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return STATUS_UNSUCCESSFUL;
}
OUT PULONG ActualLength)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return STATUS_UNSUCCESSFUL;
}
OUT PULONG ActualLength)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return STATUS_UNSUCCESSFUL;
}
OUT PULONG ActualLength)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return STATUS_UNSUCCESSFUL;
}
OUT PULONG ActualLength)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return STATUS_UNSUCCESSFUL;
}
OUT PULONG ActualDataSize)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return STATUS_UNSUCCESSFUL;
}
OUT PULONG ActualDataSize)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return STATUS_UNSUCCESSFUL;
}
KdpSysCheckLowMemory(IN ULONG Flags)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return STATUS_UNSUCCESSFUL;
}
KdpAllowDisable(VOID)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
return STATUS_ACCESS_DENIED;
}
KiBugCheckDebugBreak(DBG_STATUS_BUGCHECK_SECOND);
/* Shouldn't get here */
+ ASSERT(FALSE);
while (TRUE);
}
{
/* FIXME: Setup Threaded DPC */
DPRINT1("Threaded DPC not supported\n");
+ ASSERT(FALSE);
while (TRUE);
}
}
{
/* Not handled yet */
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
+ return;
}
/* Update CR3 */
{
/* Should only happen in VDM mode */
UNIMPLEMENTED;
+ ASSERT(FALSE);
while (TRUE);
}
{
/* Not implemented */
UNIMPLEMENTED;
+ ASSERT(FALSE);
while (TRUE);
}
{
/* Should only happen in VDM mode */
UNIMPLEMENTED;
+ ASSERT(FALSE);
while (TRUE);
}
{
/* Not implemented */
UNIMPLEMENTED;
+ ASSERT(FALSE);
while (TRUE);
}
{
/* Otherwise, this is another kind of IRET fault */
UNIMPLEMENTED;
+ ASSERT(FALSE);
while (TRUE);
}
}
{
/* The stack is somewhere in between frames, we need to fix it */
UNIMPLEMENTED;
+ ASSERT(FALSE);
while (TRUE);
}
}
{
/* Not yet implemented */
UNIMPLEMENTED;
+ ASSERT(FALSE);
while (TRUE);
}
#endif
KiGetTickCountHandler(IN PKTRAP_FRAME TrapFrame)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
}
VOID
KiCallbackReturnHandler(IN PKTRAP_FRAME TrapFrame)
{
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
}
DECLSPEC_NORETURN
{
/* Access violation */
UNIMPLEMENTED;
+ ASSERT(FALSE);
while (TRUE);
}
{
/* We should never see this call happening */
DPRINT1("Mismatched NT/HAL version");
+ ASSERT(FALSE);
while (TRUE);
}
{
/* ReactOS only implements this routine for shutdown, which requires it */
UNIMPLEMENTED;
- while (TRUE);
+ ASSERT(FALSE); // while (TRUE);
+ KeReleaseGuardedMutex(&PopVolumeLock);
+ return;
}
/* Check if there were no volumes at all */