Author: ion
Date: Thu Feb 8 04:22:04 2007
New Revision: 25752
URL:
http://svn.reactos.org/svn/reactos?rev=25752&view=rev
Log:
- Fix build.
- Initialize some SharedUserData settings in MmInitSystem.
Modified:
trunk/reactos/ntoskrnl/include/internal/inbv.h
trunk/reactos/ntoskrnl/mm/mminit.c
Modified: trunk/reactos/ntoskrnl/include/internal/inbv.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/inbv.h (original)
+++ trunk/reactos/ntoskrnl/include/internal/inbv.h Thu Feb 8 04:22:04 2007
@@ -45,6 +45,8 @@
VOID
);
+extern BOOLEAN InbvBootDriverInstalled;
+
#endif /* NTOSKRNL_INBV_H */
Modified: trunk/reactos/ntoskrnl/mm/mminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/mminit.c?rev=2…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/mminit.c (original)
+++ trunk/reactos/ntoskrnl/mm/mminit.c Thu Feb 8 04:22:04 2007
@@ -468,6 +468,14 @@
SectionsReady = TRUE;
MmInitPagingFile();
PagingReady = TRUE;
+
+ /* Setup shared user data settings that NT does as well */
+ ASSERT(SharedUserData->NumberOfPhysicalPages == 0);
+ SharedUserData->NumberOfPhysicalPages = MmStats.NrTotalPages;
+ SharedUserData->LargePageMinimum = 0;
+
+ /* For now, we assume that we're always Workstation */
+ SharedUserData->NtProductType = NtProductWinNt;
}
else if (Phase == 2)
{