mirror of
https://github.com/reactos/reactos.git
synced 2024-07-05 04:06:22 +00:00
- Use the new portable flag definitions.
svn path=/trunk/; revision=41979
This commit is contained in:
parent
a8fd19398a
commit
dc3d103e78
|
@ -46,7 +46,7 @@ MiMapPageInHyperSpace(IN PEPROCESS Process,
|
||||||
//
|
//
|
||||||
TempPte = HyperTemplatePte;
|
TempPte = HyperTemplatePte;
|
||||||
TempPte.u.Hard.PageFrameNumber = Page;
|
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
|
// Pick the first hyperspace PTE
|
||||||
|
@ -157,7 +157,7 @@ MiMapPagesToZeroInHyperSpace(IN PMMPFN *Pages,
|
||||||
//
|
//
|
||||||
PointerPte += (Offset + 1);
|
PointerPte += (Offset + 1);
|
||||||
TempPte = HyperTemplatePte;
|
TempPte = HyperTemplatePte;
|
||||||
TempPte.u.Hard.Global = FALSE; // Hyperspace is local!
|
MI_MAKE_LOCAL_PAGE(&TempPte); // Hyperspace is local!
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
|
|
|
@ -115,8 +115,8 @@ MmMapIoSpace(IN PHYSICAL_ADDRESS PhysicalAddress,
|
||||||
//
|
//
|
||||||
// Disable the cache
|
// Disable the cache
|
||||||
//
|
//
|
||||||
TempPte.u.Hard.CacheDisable = 1;
|
MI_PAGE_DISABLE_CACHE(&TempPte);
|
||||||
TempPte.u.Hard.WriteThrough = 1;
|
MI_PAGE_WRITE_THROUGH(&TempPte);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MiCached:
|
case MiCached:
|
||||||
|
|
|
@ -369,8 +369,8 @@ MmMapLockedPagesSpecifyCache(IN PMDL Mdl,
|
||||||
//
|
//
|
||||||
// Disable caching
|
// Disable caching
|
||||||
//
|
//
|
||||||
TempPte.u.Hard.CacheDisable = 1;
|
MI_PAGE_DISABLE_CACHE(&TempPte);
|
||||||
TempPte.u.Hard.WriteThrough = 1;
|
MI_PAGE_WRITE_THROUGH(&TempPte);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MiWriteCombined:
|
case MiWriteCombined:
|
||||||
|
@ -378,8 +378,8 @@ MmMapLockedPagesSpecifyCache(IN PMDL Mdl,
|
||||||
//
|
//
|
||||||
// Enable write combining
|
// Enable write combining
|
||||||
//
|
//
|
||||||
TempPte.u.Hard.CacheDisable = 1;
|
MI_PAGE_DISABLE_CACHE(&TempPte);
|
||||||
TempPte.u.Hard.WriteThrough = 0;
|
MI_PAGE_WRITE_COMBINED(&TempPte);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -856,12 +856,12 @@ MmProbeAndLockPages(IN PMDL Mdl,
|
||||||
//
|
//
|
||||||
// Check if the PTE is not writable
|
// 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
|
// 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
|
// Get the base address and allow a change for user-mode
|
||||||
|
|
|
@ -120,8 +120,8 @@ MmAllocateNonCachedMemory(IN ULONG NumberOfBytes)
|
||||||
//
|
//
|
||||||
// Disable caching
|
// Disable caching
|
||||||
//
|
//
|
||||||
TempPte.u.Hard.CacheDisable = 1;
|
MI_PAGE_DISABLE_CACHE(&TempPte);
|
||||||
TempPte.u.Hard.WriteThrough = 1;
|
MI_PAGE_WRITE_THROUGH(&TempPte);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MiWriteCombined:
|
case MiWriteCombined:
|
||||||
|
@ -129,8 +129,8 @@ MmAllocateNonCachedMemory(IN ULONG NumberOfBytes)
|
||||||
//
|
//
|
||||||
// Enable write combining
|
// Enable write combining
|
||||||
//
|
//
|
||||||
TempPte.u.Hard.CacheDisable = 1;
|
MI_PAGE_DISABLE_CACHE(&TempPte);
|
||||||
TempPte.u.Hard.WriteThrough = 0;
|
MI_PAGE_WRITE_COMBINED(&TempPte);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -128,9 +128,9 @@ MmCreateKernelStack(IN BOOLEAN GuiStack,
|
||||||
// Setup the template stack PTE
|
// Setup the template stack PTE
|
||||||
//
|
//
|
||||||
TempPte = HyperTemplatePte;
|
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.PageFrameNumber = 0;
|
||||||
TempPte.u.Hard.Dirty = TRUE;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Acquire the PFN DB lock
|
// Acquire the PFN DB lock
|
||||||
|
@ -225,9 +225,9 @@ MmGrowKernelStackEx(IN PVOID StackPointer,
|
||||||
// Setup the template stack PTE
|
// Setup the template stack PTE
|
||||||
//
|
//
|
||||||
TempPte = HyperTemplatePte;
|
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.PageFrameNumber = 0;
|
||||||
TempPte.u.Hard.Dirty = TRUE;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Acquire the PFN DB lock
|
// Acquire the PFN DB lock
|
||||||
|
|
|
@ -364,7 +364,7 @@ MiInitializeSystemPtes(IN PMMPTE StartingPte,
|
||||||
//
|
//
|
||||||
// Set the starting and ending PTE addresses for this space
|
// Set the starting and ending PTE addresses for this space
|
||||||
//
|
//
|
||||||
MmSystemPteBase = (PVOID)PAGETABLE_MAP;
|
MmSystemPteBase = (PVOID)PTE_BASE;
|
||||||
MmSystemPtesStart[PoolType] = StartingPte;
|
MmSystemPtesStart[PoolType] = StartingPte;
|
||||||
MmSystemPtesEnd[PoolType] = StartingPte + NumberOfPtes - 1;
|
MmSystemPtesEnd[PoolType] = StartingPte + NumberOfPtes - 1;
|
||||||
DPRINT("System PTE space for %d starting at: %p and ending at: %p\n",
|
DPRINT("System PTE space for %d starting at: %p and ending at: %p\n",
|
||||||
|
|
Loading…
Reference in a new issue