mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[NTOS:MM] Improve debug prints in MmCreateVirtualMappingUnsafe. CORE-14478
This commit is contained in:
parent
1e579843bc
commit
a17bf6f669
1 changed files with 4 additions and 4 deletions
|
@ -673,13 +673,13 @@ MmCreateVirtualMappingUnsafe(PEPROCESS Process,
|
||||||
{
|
{
|
||||||
if (Address < MmSystemRangeStart)
|
if (Address < MmSystemRangeStart)
|
||||||
{
|
{
|
||||||
DPRINT1("No process\n");
|
DPRINT1("NULL process given for user-mode mapping at %p -- %lu pages starting at %Ix\n", Address, PageCount, *Pages);
|
||||||
KeBugCheck(MEMORY_MANAGEMENT);
|
KeBugCheck(MEMORY_MANAGEMENT);
|
||||||
}
|
}
|
||||||
if (PageCount > 0x10000 ||
|
if (PageCount > 0x10000 ||
|
||||||
(ULONG_PTR) Address / PAGE_SIZE + PageCount > 0x100000)
|
(ULONG_PTR) Address / PAGE_SIZE + PageCount > 0x100000)
|
||||||
{
|
{
|
||||||
DPRINT1("Page count too large\n");
|
DPRINT1("Page count too large for kernel-mode mapping at %p -- %lu pages starting at %Ix\n", Address, PageCount, *Pages);
|
||||||
KeBugCheck(MEMORY_MANAGEMENT);
|
KeBugCheck(MEMORY_MANAGEMENT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -687,14 +687,14 @@ MmCreateVirtualMappingUnsafe(PEPROCESS Process,
|
||||||
{
|
{
|
||||||
if (Address >= MmSystemRangeStart)
|
if (Address >= MmSystemRangeStart)
|
||||||
{
|
{
|
||||||
DPRINT1("Setting kernel address with process context\n");
|
DPRINT1("Process %p given for kernel-mode mapping at %p -- %lu pages starting at %Ix\n", Process, Address, PageCount, *Pages);
|
||||||
KeBugCheck(MEMORY_MANAGEMENT);
|
KeBugCheck(MEMORY_MANAGEMENT);
|
||||||
}
|
}
|
||||||
if (PageCount > (ULONG_PTR)MmSystemRangeStart / PAGE_SIZE ||
|
if (PageCount > (ULONG_PTR)MmSystemRangeStart / PAGE_SIZE ||
|
||||||
(ULONG_PTR) Address / PAGE_SIZE + PageCount >
|
(ULONG_PTR) Address / PAGE_SIZE + PageCount >
|
||||||
(ULONG_PTR)MmSystemRangeStart / PAGE_SIZE)
|
(ULONG_PTR)MmSystemRangeStart / PAGE_SIZE)
|
||||||
{
|
{
|
||||||
DPRINT1("Page Count too large\n");
|
DPRINT1("Page count too large for process %p user-mode mapping at %p -- %lu pages starting at %Ix\n", Process, Address, PageCount, *Pages);
|
||||||
KeBugCheck(MEMORY_MANAGEMENT);
|
KeBugCheck(MEMORY_MANAGEMENT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue