- Use the new portable flag definitions.

svn path=/trunk/; revision=41979
This commit is contained in:
ReactOS Portable Systems Group 2009-07-15 17:53:45 +00:00
parent a8fd19398a
commit dc3d103e78
6 changed files with 19 additions and 19 deletions

View file

@ -46,7 +46,7 @@ MiMapPageInHyperSpace(IN PEPROCESS Process,
//
TempPte = HyperTemplatePte;
TempPte.u.Hard.PageFrameNumber = Page;
TempPte.u.Hard.Global = 0; // Hyperspace is local!
MI_MAKE_LOCAL_PAGE(&TempPte); // Hyperspace is local!
//
// Pick the first hyperspace PTE
@ -157,7 +157,7 @@ MiMapPagesToZeroInHyperSpace(IN PMMPFN *Pages,
//
PointerPte += (Offset + 1);
TempPte = HyperTemplatePte;
TempPte.u.Hard.Global = FALSE; // Hyperspace is local!
MI_MAKE_LOCAL_PAGE(&TempPte); // Hyperspace is local!
do
{
//

View file

@ -115,8 +115,8 @@ MmMapIoSpace(IN PHYSICAL_ADDRESS PhysicalAddress,
//
// Disable the cache
//
TempPte.u.Hard.CacheDisable = 1;
TempPte.u.Hard.WriteThrough = 1;
MI_PAGE_DISABLE_CACHE(&TempPte);
MI_PAGE_WRITE_THROUGH(&TempPte);
break;
case MiCached:

View file

@ -369,8 +369,8 @@ MmMapLockedPagesSpecifyCache(IN PMDL Mdl,
//
// Disable caching
//
TempPte.u.Hard.CacheDisable = 1;
TempPte.u.Hard.WriteThrough = 1;
MI_PAGE_DISABLE_CACHE(&TempPte);
MI_PAGE_WRITE_THROUGH(&TempPte);
break;
case MiWriteCombined:
@ -378,8 +378,8 @@ MmMapLockedPagesSpecifyCache(IN PMDL Mdl,
//
// Enable write combining
//
TempPte.u.Hard.CacheDisable = 1;
TempPte.u.Hard.WriteThrough = 0;
MI_PAGE_DISABLE_CACHE(&TempPte);
MI_PAGE_WRITE_COMBINED(&TempPte);
break;
default:
@ -856,12 +856,12 @@ MmProbeAndLockPages(IN PMDL Mdl,
//
// Check if the PTE is not writable
//
if (!PointerPte->u.Hard.Write)
if (MI_IS_PAGE_WRITEABLE(PointerPte) == FALSE)
{
//
// Check if it's copy on write
//
if (PointerPte->u.Hard.CopyOnWrite)
if (MI_IS_PAGE_COPY_ON_WRITE(PointerPte))
{
//
// Get the base address and allow a change for user-mode

View file

@ -120,8 +120,8 @@ MmAllocateNonCachedMemory(IN ULONG NumberOfBytes)
//
// Disable caching
//
TempPte.u.Hard.CacheDisable = 1;
TempPte.u.Hard.WriteThrough = 1;
MI_PAGE_DISABLE_CACHE(&TempPte);
MI_PAGE_WRITE_THROUGH(&TempPte);
break;
case MiWriteCombined:
@ -129,8 +129,8 @@ MmAllocateNonCachedMemory(IN ULONG NumberOfBytes)
//
// Enable write combining
//
TempPte.u.Hard.CacheDisable = 1;
TempPte.u.Hard.WriteThrough = 0;
MI_PAGE_DISABLE_CACHE(&TempPte);
MI_PAGE_WRITE_COMBINED(&TempPte);
break;
default:

View file

@ -128,9 +128,9 @@ MmCreateKernelStack(IN BOOLEAN GuiStack,
// Setup the template stack PTE
//
TempPte = HyperTemplatePte;
TempPte.u.Hard.Global = FALSE;
MI_MAKE_LOCAL_PAGE(&TempPte);
MI_MAKE_DIRTY_PAGE(&TempPte);
TempPte.u.Hard.PageFrameNumber = 0;
TempPte.u.Hard.Dirty = TRUE;
//
// Acquire the PFN DB lock
@ -225,9 +225,9 @@ MmGrowKernelStackEx(IN PVOID StackPointer,
// Setup the template stack PTE
//
TempPte = HyperTemplatePte;
TempPte.u.Hard.Global = FALSE;
MI_MAKE_LOCAL_PAGE(&TempPte);
MI_MAKE_DIRTY_PAGE(&TempPte);
TempPte.u.Hard.PageFrameNumber = 0;
TempPte.u.Hard.Dirty = TRUE;
//
// Acquire the PFN DB lock

View file

@ -364,7 +364,7 @@ MiInitializeSystemPtes(IN PMMPTE StartingPte,
//
// Set the starting and ending PTE addresses for this space
//
MmSystemPteBase = (PVOID)PAGETABLE_MAP;
MmSystemPteBase = (PVOID)PTE_BASE;
MmSystemPtesStart[PoolType] = StartingPte;
MmSystemPtesEnd[PoolType] = StartingPte + NumberOfPtes - 1;
DPRINT("System PTE space for %d starting at: %p and ending at: %p\n",