mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 09:11:42 +00:00
[NTOS:KD64] Whitespace fixes only!
This commit is contained in:
parent
93220e26d0
commit
384d55e47a
1 changed files with 20 additions and 22 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue