Author: dgorbachev
Date: Sun Mar 15 05:05:40 2009
New Revision: 40021
URL:
http://svn.reactos.org/svn/reactos?rev=40021&view=rev
Log:
Uncomment locks, remove unnecessary stuff.
Modified:
trunk/reactos/ntoskrnl/mm/hypermap.c
Modified: trunk/reactos/ntoskrnl/mm/hypermap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/hypermap.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/hypermap.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/hypermap.c [iso-8859-1] Sun Mar 15 05:05:40 2009
@@ -14,11 +14,8 @@
/* GLOBALS ********************************************************************/
-#define MI_ZEROING_PTES 255
-
PMMPTE MmFirstReservedMappingPte;
PMMPTE MmLastReservedMappingPte;
-PMMPTE MmFirstReservedZeroingPte;
MMPTE HyperTemplatePte;
PEPROCESS HyperProcess;
KIRQL HyperIrql;
@@ -30,21 +27,19 @@
MiInitHyperSpace(VOID)
{
PMMPTE PointerPte;
-
+
//
// Get the hyperspace PTE and zero out the page table
//
PointerPte = MiAddressToPte(HYPER_SPACE);
RtlZeroMemory(PointerPte, PAGE_SIZE);
-
+
//
// Setup mapping PTEs
//
MmFirstReservedMappingPte = MiAddressToPte(MI_MAPPING_RANGE_START);
MmLastReservedMappingPte = MiAddressToPte(MI_MAPPING_RANGE_END);
MmFirstReservedMappingPte->u.Hard.PageFrameNumber = MI_HYPERSPACE_PTES;
- MmFirstReservedZeroingPte = MiAddressToPte(MI_ZERO_PTE);
- MmFirstReservedZeroingPte->u.Hard.PageFrameNumber = MI_ZEROING_PTES;
}
PVOID
@@ -78,7 +73,7 @@
// Acquire the hyperlock
//
ASSERT(Process == PsGetCurrentProcess());
- //KeAcquireSpinLock(&Process->HyperSpaceLock, OldIrql);
+ KeAcquireSpinLock(&Process->HyperSpaceLock, OldIrql);
//
// Now get the first free PTE
@@ -129,8 +124,8 @@
//
// Release the hyperlock
//
- //ASSERT(KeGetCurrentIrql() == DISPATCH_LEVEL);
- //KeReleaseSpinLock(&Process->HyperSpaceLock, OldIrql);
+ ASSERT(KeGetCurrentIrql() == DISPATCH_LEVEL);
+ KeReleaseSpinLock(&Process->HyperSpaceLock, OldIrql);
}
PVOID