mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[NTOS:MM] Fix ASSERT when expanding paged pool
The page directory is double mapped on x86 in the system process, so writing to it will already write to the PDE.
This commit is contained in:
parent
36051d3065
commit
e97b95cc2e
1 changed files with 2 additions and 3 deletions
|
@ -555,6 +555,8 @@ MiAllocatePoolPages(IN POOL_TYPE PoolType,
|
|||
(PMMPTE)PointerPde,
|
||||
PFN_FROM_PTE(MiAddressToPte(PointerPde)));
|
||||
|
||||
/* Write the actual PDE now */
|
||||
MI_WRITE_VALID_PDE(PointerPde, TempPde);
|
||||
#else
|
||||
//
|
||||
// Save it into our double-buffered system page directory
|
||||
|
@ -567,9 +569,6 @@ MiAllocatePoolPages(IN POOL_TYPE PoolType,
|
|||
MmSystemPageDirectory[(PointerPde - MiAddressToPde(NULL)) / PDE_COUNT]);
|
||||
#endif
|
||||
|
||||
/* Write the actual PDE now */
|
||||
MI_WRITE_VALID_PDE(PointerPde, TempPde);
|
||||
|
||||
//
|
||||
// Move on to the next expansion address
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue