Author: tkreuzer
Date: Wed Nov 18 22:20:09 2009
New Revision: 44228
URL:
http://svn.reactos.org/svn/reactos?rev=44228&view=rev
Log:
[MM]
Don't assume 1024 PTEs per page, instead use PTE_PER_PAGE constant.
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/i386/mm.h
branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mminit.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/i386/mm.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/i386/mm.h [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/i386/mm.h [iso-8859-1]
Wed Nov 18 22:20:09 2009
@@ -18,6 +18,7 @@
#define PTE_BASE 0xC0000000
#define PDE_BASE 0xC0300000
#define PTE_TOP 0xC03FFFFF
+#define PTE_PER_PAGE 1024
#define HYPER_SPACE 0xC0400000
#define HYPER_SPACE_END 0xC07FFFFF
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mminit.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mminit.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mminit.c [iso-8859-1] Wed Nov 18
22:20:09 2009
@@ -433,7 +433,7 @@
Test[i] = MiAllocatePoolPages(PagedPool, PAGE_SIZE);
if (!Test[i])
{
- ASSERT(i == 1024);
+ ASSERT(i == PTE_PER_PAGE);
break;
}
}