Fix some warnings / bugs.

svn path=/trunk/; revision=41724
This commit is contained in:
Dmitry Gorbachev 2009-07-01 09:59:47 +00:00
parent fdb5cd14fe
commit 645b22988a
4 changed files with 5 additions and 5 deletions

View file

@ -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);

View file

@ -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)

View file

@ -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];
// //

View file

@ -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