mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 06:53:37 +00:00
[NTOS:KD] Whitespace fixes + fix helper function name.
This commit is contained in:
parent
158fda5cdf
commit
ef5f034974
2 changed files with 8 additions and 8 deletions
|
@ -118,7 +118,7 @@ KdpTranslateAddress(ULONG_PTR Addr, PULONG_PTR ResultAddr)
|
||||||
{
|
{
|
||||||
ULONG_PTR CR3Value = __readcr3();
|
ULONG_PTR CR3Value = __readcr3();
|
||||||
ULONG_PTR CR4Value = __readcr4();
|
ULONG_PTR CR4Value = __readcr4();
|
||||||
ULONG_PTR PageDirectory = (CR3Value & ~(PAGE_SIZE-1)) +
|
ULONG_PTR PageDirectory = (CR3Value & ~(PAGE_SIZE-1)) +
|
||||||
((Addr >> 22) * sizeof(ULONG));
|
((Addr >> 22) * sizeof(ULONG));
|
||||||
ULONG_PTR PageDirectoryEntry = KdpPhysRead(PageDirectory, sizeof(ULONG));
|
ULONG_PTR PageDirectoryEntry = KdpPhysRead(PageDirectory, sizeof(ULONG));
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ KdpTranslateAddress(ULONG_PTR Addr, PULONG_PTR ResultAddr)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ULONG_PTR PageTableAddr =
|
ULONG_PTR PageTableAddr =
|
||||||
(PageDirectoryEntry & ~(PAGE_SIZE-1)) +
|
(PageDirectoryEntry & ~(PAGE_SIZE-1)) +
|
||||||
((Addr >> PAGE_SHIFT) & PAGE_TABLE_MASK) * sizeof(ULONG);
|
((Addr >> PAGE_SHIFT) & PAGE_TABLE_MASK) * sizeof(ULONG);
|
||||||
ULONG_PTR PageTableEntry = KdpPhysRead(PageTableAddr, sizeof(ULONG));
|
ULONG_PTR PageTableEntry = KdpPhysRead(PageTableAddr, sizeof(ULONG));
|
||||||
|
@ -165,7 +165,7 @@ KdpSafeReadMemory(ULONG_PTR Addr, LONG Len, PVOID Value)
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(Value, 0, Len);
|
memset(Value, 0, Len);
|
||||||
|
|
||||||
if (!KdpTranslateAddress(Addr, &ResultPhysAddr))
|
if (!KdpTranslateAddress(Addr, &ResultPhysAddr))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ KdpSafeWriteMemory(ULONG_PTR Addr, LONG Len, ULONGLONG Value)
|
||||||
memcpy((PVOID)Addr, &Value, Len);
|
memcpy((PVOID)Addr, &Value, Len);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!KdpTranslateAddress(Addr, &ResultPhysAddr))
|
if (!KdpTranslateAddress(Addr, &ResultPhysAddr))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
|
|
@ -529,7 +529,7 @@ KdpWriteVirtualMemory(IN PDBGKD_MANIPULATE_STATE64 State,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdpReadPhysicalmemory(IN PDBGKD_MANIPULATE_STATE64 State,
|
KdpReadPhysicalMemory(IN PDBGKD_MANIPULATE_STATE64 State,
|
||||||
IN PSTRING Data,
|
IN PSTRING Data,
|
||||||
IN PCONTEXT Context)
|
IN PCONTEXT Context)
|
||||||
{
|
{
|
||||||
|
@ -592,7 +592,7 @@ KdpReadPhysicalmemory(IN PDBGKD_MANIPULATE_STATE64 State,
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdpWritePhysicalmemory(IN PDBGKD_MANIPULATE_STATE64 State,
|
KdpWritePhysicalMemory(IN PDBGKD_MANIPULATE_STATE64 State,
|
||||||
IN PSTRING Data,
|
IN PSTRING Data,
|
||||||
IN PCONTEXT Context)
|
IN PCONTEXT Context)
|
||||||
{
|
{
|
||||||
|
@ -1395,13 +1395,13 @@ SendPacket:
|
||||||
case DbgKdReadPhysicalMemoryApi:
|
case DbgKdReadPhysicalMemoryApi:
|
||||||
|
|
||||||
/* Read physical memory */
|
/* Read physical memory */
|
||||||
KdpReadPhysicalmemory(&ManipulateState, &Data, Context);
|
KdpReadPhysicalMemory(&ManipulateState, &Data, Context);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DbgKdWritePhysicalMemoryApi:
|
case DbgKdWritePhysicalMemoryApi:
|
||||||
|
|
||||||
/* Write physical memory */
|
/* Write physical memory */
|
||||||
KdpWritePhysicalmemory(&ManipulateState, &Data, Context);
|
KdpWritePhysicalMemory(&ManipulateState, &Data, Context);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DbgKdQuerySpecialCallsApi:
|
case DbgKdQuerySpecialCallsApi:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue