Author: sginsberg
Date: Sat Jul 25 13:43:48 2009
New Revision: 42204
URL:
http://svn.reactos.org/svn/reactos?rev=42204&view=rev
Log:
- Fix some kernel MSC compilation issues:
- ShutdownThreadMain: Define SMP-only variables compatibly
- MmArmInitSystem: Define MiNonPagedPoolStart and MiNonPagedPoolLength externs compatibly
- KdbpCallMainLoop: Add VOID to parameter list
Modified:
trunk/reactos/ntoskrnl/ex/shutdown.c
trunk/reactos/ntoskrnl/kdbg/kdb.c
trunk/reactos/ntoskrnl/mm/ARM3/i386/init.c
Modified: trunk/reactos/ntoskrnl/ex/shutdown.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/shutdown.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/shutdown.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/shutdown.c [iso-8859-1] Sat Jul 25 13:43:48 2009
@@ -133,6 +133,10 @@
"<Place your Ad here>\n"
};
LARGE_INTEGER Now;
+#ifdef CONFIG_SMP
+ LONG i;
+ KIRQL OldIrql;
+#endif
/* Run the thread on the boot processor */
KeSetSystemAffinityThread(1);
@@ -172,9 +176,6 @@
HalReturnToFirmware (FIRMWARE_OFF);
#else
#ifdef CONFIG_SMP
- LONG i;
- KIRQL OldIrql;
-
OldIrql = KeRaiseIrqlToDpcLevel();
/* Halt all other processors */
for (i = 0; i < KeNumberProcessors; i++)
Modified: trunk/reactos/ntoskrnl/kdbg/kdb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/kdb.c?rev=42…
==============================================================================
--- trunk/reactos/ntoskrnl/kdbg/kdb.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kdbg/kdb.c [iso-8859-1] Sat Jul 25 13:43:48 2009
@@ -1175,7 +1175,7 @@
/*!\brief Calls the main loop ...
*/
static VOID
-KdbpCallMainLoop()
+KdbpCallMainLoop(VOID)
{
KdbpCliMainLoop(KdbEnteredOnSingleStep);
}
Modified: trunk/reactos/ntoskrnl/mm/ARM3/i386/init.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/i386/init…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/i386/init.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/i386/init.c [iso-8859-1] Sat Jul 25 13:43:48 2009
@@ -94,6 +94,12 @@
PVOID MmNonPagedPoolStart;
PVOID MmNonPagedPoolExpansionStart;
PVOID MmNonPagedPoolEnd = MI_NONPAGED_POOL_END;
+
+//
+// Old ReactOS Mm nonpaged pool
+//
+extern PVOID MiNonPagedPoolStart;
+extern ULONG MiNonPagedPoolLength;
//
// This is where paged pool starts by default
@@ -1211,8 +1217,6 @@
//
// Print the memory layout
//
- extern PVOID MiNonPagedPoolStart;
- extern ULONG MiNonPagedPoolLength;
DPRINT1(" 0x%p - 0x%p\t%s\n",
MmSystemRangeStart,
(ULONG_PTR)MmSystemRangeStart + MmBootImageSize,