mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 16:36:07 +00:00
[NTOS:MM] Fix paged pool expansion
This commit is contained in:
parent
af3d426685
commit
c219be9409
1 changed files with 8 additions and 3 deletions
|
@ -550,7 +550,11 @@ MiAllocatePoolPages(IN POOL_TYPE PoolType,
|
||||||
TempPde.u.Hard.PageFrameNumber = PageFrameNumber;
|
TempPde.u.Hard.PageFrameNumber = PageFrameNumber;
|
||||||
#if (_MI_PAGING_LEVELS >= 3)
|
#if (_MI_PAGING_LEVELS >= 3)
|
||||||
/* On PAE/x64 systems, there's no double-buffering */
|
/* On PAE/x64 systems, there's no double-buffering */
|
||||||
ASSERT(FALSE);
|
/* Initialize the PFN entry for it */
|
||||||
|
MiInitializePfnForOtherProcess(PageFrameNumber,
|
||||||
|
(PMMPTE)PointerPde,
|
||||||
|
PFN_FROM_PTE(MiAddressToPte(PointerPde)));
|
||||||
|
|
||||||
#else
|
#else
|
||||||
//
|
//
|
||||||
// Save it into our double-buffered system page directory
|
// Save it into our double-buffered system page directory
|
||||||
|
@ -561,10 +565,11 @@ MiAllocatePoolPages(IN POOL_TYPE PoolType,
|
||||||
MiInitializePfnForOtherProcess(PageFrameNumber,
|
MiInitializePfnForOtherProcess(PageFrameNumber,
|
||||||
(PMMPTE)PointerPde,
|
(PMMPTE)PointerPde,
|
||||||
MmSystemPageDirectory[(PointerPde - MiAddressToPde(NULL)) / PDE_COUNT]);
|
MmSystemPageDirectory[(PointerPde - MiAddressToPde(NULL)) / PDE_COUNT]);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Write the actual PDE now */
|
/* Write the actual PDE now */
|
||||||
// MI_WRITE_VALID_PDE(PointerPde, TempPde);
|
MI_WRITE_VALID_PDE(PointerPde, TempPde);
|
||||||
#endif
|
|
||||||
//
|
//
|
||||||
// Move on to the next expansion address
|
// Move on to the next expansion address
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue