mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 00:45:43 +00:00
Fix some warnings / bugs.
svn path=/trunk/; revision=41724
This commit is contained in:
parent
fdb5cd14fe
commit
645b22988a
4 changed files with 5 additions and 5 deletions
|
@ -1186,8 +1186,8 @@ MmCreateHyperspaceMapping(IN PFN_NUMBER Page)
|
||||||
return MiMapPageInHyperSpace(HyperProcess, Page, &HyperIrql);
|
return MiMapPageInHyperSpace(HyperProcess, Page, &HyperIrql);
|
||||||
}
|
}
|
||||||
|
|
||||||
PVOID
|
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
|
PVOID
|
||||||
MiMapPageToZeroInHyperSpace(IN PFN_NUMBER Page)
|
MiMapPageToZeroInHyperSpace(IN PFN_NUMBER Page)
|
||||||
{
|
{
|
||||||
PMMPFN Pfn1 = MiGetPfnEntry(Page);
|
PMMPFN Pfn1 = MiGetPfnEntry(Page);
|
||||||
|
|
|
@ -309,7 +309,7 @@ KiRosConfigureArcDescriptor(IN ULONG PageBegin,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if the block matches us, and we haven't tried combining yet */
|
/* Check if the block matches us, and we haven't tried combining yet */
|
||||||
if ((BlockType == MemoryType) && !(Combined))
|
if (((TYPE_OF_MEMORY)BlockType == MemoryType) && !(Combined))
|
||||||
{
|
{
|
||||||
/* Check if it starts where we end */
|
/* Check if it starts where we end */
|
||||||
if (BlockBegin == PageEnd)
|
if (BlockBegin == PageEnd)
|
||||||
|
|
|
@ -328,7 +328,7 @@ MmMapLockedPagesSpecifyCache(IN PMDL Mdl,
|
||||||
//
|
//
|
||||||
// Get the correct cache type
|
// Get the correct cache type
|
||||||
//
|
//
|
||||||
IsIoMapping = Mdl->MdlFlags & MDL_IO_SPACE;
|
IsIoMapping = (Mdl->MdlFlags & MDL_IO_SPACE) != 0;
|
||||||
CacheAttribute = MiPlatformCacheAttributes[IsIoMapping][CacheType];
|
CacheAttribute = MiPlatformCacheAttributes[IsIoMapping][CacheType];
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -453,7 +453,7 @@ MiAllocatePagesForMdl(IN PHYSICAL_ADDRESS LowAddress,
|
||||||
KIRQL OldIrql;
|
KIRQL OldIrql;
|
||||||
PLIST_ENTRY ListEntry;
|
PLIST_ENTRY ListEntry;
|
||||||
PPHYSICAL_PAGE Pfn1;
|
PPHYSICAL_PAGE Pfn1;
|
||||||
ULONG LookForZeroedPages;
|
INT LookForZeroedPages;
|
||||||
ASSERT (KeGetCurrentIrql() <= APC_LEVEL);
|
ASSERT (KeGetCurrentIrql() <= APC_LEVEL);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -689,7 +689,7 @@ MiAllocatePagesForMdl(IN PHYSICAL_ADDRESS LowAddress,
|
||||||
// Check if we've reached the end
|
// Check if we've reached the end
|
||||||
//
|
//
|
||||||
Page = *MdlPage;
|
Page = *MdlPage;
|
||||||
if (Page == -1) break;
|
if (Page == (PFN_NUMBER)-1) break;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get the PFN entry for the page and check if we should zero it out
|
// Get the PFN entry for the page and check if we should zero it out
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue