Reactos
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[NTOS:MM] Lock kernel address space in MiInitSystemMemoryAreas

This is required to satisfy VAD locking rules.

+5 -1
+5 -1
ntoskrnl/mm/mminit.c
··· 1 - /* 1 + /* 2 2 * PROJECT: ReactOS Kernel 3 3 * LICENSE: GPL - See COPYING in the top level directory 4 4 * FILE: ntoskrnl/mm/mminit.c ··· 68 68 // Create all the static memory areas. 69 69 // 70 70 71 + MmLockAddressSpace(MmGetKernelAddressSpace()); 72 + 71 73 #ifdef _M_AMD64 72 74 // Reserved range FFFF800000000000 - FFFFF68000000000 73 75 MiCreateArm3StaticMemoryArea((PVOID)MI_REAL_SYSTEM_RANGE_START, PTE_BASE - MI_REAL_SYSTEM_RANGE_START, FALSE); ··· 118 120 // KUSER_SHARED_DATA 119 121 MiCreateArm3StaticMemoryArea((PVOID)KI_USER_SHARED_DATA, PAGE_SIZE, FALSE); 120 122 #endif /* _X86_ */ 123 + 124 + MmUnlockAddressSpace(MmGetKernelAddressSpace()); 121 125 } 122 126 123 127 CODE_SEG("INIT")