[NTOS:KD64] Whitespace fixes only!

This commit is contained in:
Hermès Bélusca-Maïto 2019-11-03 23:32:56 +01:00
parent 93220e26d0
commit 384d55e47a
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -84,8 +84,8 @@ KdpCopyMemoryChunks(IN ULONG64 Address,
} }
/* /*
* The chunk size can be larger than the remaining size if this isn't * The chunk size can be larger than the remaining size if this
* the first round, so check if we need to shrink it back * isn't the first round, so check if we need to shrink it back.
*/ */
while (CopyChunk > RemainingLength) while (CopyChunk > RemainingLength)
{ {
@ -110,14 +110,12 @@ KdpCopyMemoryChunks(IN ULONG64 Address,
RemainingLength = RemainingLength - CopyChunk; RemainingLength = RemainingLength - CopyChunk;
} }
/* /* We may have modified executable code, flush the instruction cache */
* We may have modified executable code, flush the instruction cache KeSweepICache((PVOID)(ULONG_PTR)Address, TotalSize);
*/
KeSweepICache((PVOID)(ULONG_PTR)Address, TotalSize);
/* /*
* Return the size we managed to copy * Return the size we managed to copy and return
* and return success if we could copy the whole range * success if we could copy the whole range.
*/ */
if (ActualSize) *ActualSize = TotalSize - RemainingLength; if (ActualSize) *ActualSize = TotalSize - RemainingLength;
return RemainingLength == 0 ? STATUS_SUCCESS : STATUS_UNSUCCESSFUL; return RemainingLength == 0 ? STATUS_SUCCESS : STATUS_UNSUCCESSFUL;
@ -1201,12 +1199,12 @@ KdpWriteIoSpaceExtended(IN PDBGKD_MANIPULATE_STATE64 State,
/* Call the internal routine */ /* Call the internal routine */
State->ReturnStatus = KdpSysWriteIoSpace(WriteIoExtended->InterfaceType, State->ReturnStatus = KdpSysWriteIoSpace(WriteIoExtended->InterfaceType,
WriteIoExtended->BusNumber, WriteIoExtended->BusNumber,
WriteIoExtended->AddressSpace, WriteIoExtended->AddressSpace,
WriteIoExtended->IoAddress, WriteIoExtended->IoAddress,
&WriteIoExtended->DataValue, &WriteIoExtended->DataValue,
WriteIoExtended->DataSize, WriteIoExtended->DataSize,
&WriteIoExtended->DataSize); &WriteIoExtended->DataSize);
/* Send the reply */ /* Send the reply */
KdSendPacket(PACKET_TYPE_KD_STATE_MANIPULATE, KdSendPacket(PACKET_TYPE_KD_STATE_MANIPULATE,
@ -1275,7 +1273,7 @@ KdpSendWaitContinue(IN ULONG PacketType,
/* /*
* Reset the context state to ensure the debugger has received * Reset the context state to ensure the debugger has received
* the current context before it sets it * the current context before it sets it.
*/ */
KdpContextSent = FALSE; KdpContextSent = FALSE;
@ -1545,7 +1543,7 @@ SendPacket:
break; break;
case DbgKdGetContextExApi: case DbgKdGetContextExApi:
/* Extended Context Get */ /* Extended Context Get */
KdpGetContextEx(&ManipulateState, &Data, Context); KdpGetContextEx(&ManipulateState, &Data, Context);
break; break;
@ -2279,8 +2277,8 @@ KdRefreshDebuggerNotPresent(VOID)
Enable = KdEnterDebugger(NULL, NULL); Enable = KdEnterDebugger(NULL, NULL);
/* /*
* Attempt to send a string to the debugger to refresh the * Attempt to send a string to the debugger
* connection state * to refresh the connection state.
*/ */
KdpDprintf("KDTARGET: Refreshing KD connection\n"); KdpDprintf("KDTARGET: Refreshing KD connection\n");
@ -2311,8 +2309,8 @@ NtQueryDebugFilterState(IN ULONG ComponentId,
else if (ComponentId == MAXULONG) else if (ComponentId == MAXULONG)
{ {
/* /*
* This is the internal ID used for DbgPrint messages without ID and * This is the internal ID used for DbgPrint messages without ID
* Level. Use the system-wide mask for those. * and Level. Use the system-wide mask for those.
*/ */
Mask = &Kd_WIN2000_Mask; Mask = &Kd_WIN2000_Mask;
} }
@ -2367,8 +2365,8 @@ NtSetDebugFilterState(IN ULONG ComponentId,
else if (ComponentId == MAXULONG) else if (ComponentId == MAXULONG)
{ {
/* /*
* This is the internal ID used for DbgPrint messages without ID and * This is the internal ID used for DbgPrint messages without ID
* Level. Use the system-wide mask for those. * and Level. Use the system-wide mask for those.
*/ */
Mask = &Kd_WIN2000_Mask; Mask = &Kd_WIN2000_Mask;
} }