mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
- Use the new portable flag definitions.
svn path=/trunk/; revision=41979
This commit is contained in:
parent
a8fd19398a
commit
dc3d103e78
6 changed files with 19 additions and 19 deletions
|
@ -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
|
||||
{
|
||||
//
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue