Commit in reactos/ntoskrnl/ke on MAIN
main.c+29-11.186 -> 1.187
- Print the memory map at start up to the debug port.

reactos/ntoskrnl/ke
main.c 1.186 -> 1.187
diff -u -r1.186 -r1.187
--- main.c	30 Apr 2004 20:49:39 -0000	1.186
+++ main.c	29 May 2004 22:10:05 -0000	1.187
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: main.c,v 1.186 2004/04/30 20:49:39 gvg Exp $
+/* $Id: main.c,v 1.187 2004/05/29 22:10:05 hbirr Exp $
  *
  * PROJECT:         ReactOS kernel
  * FILE:            ntoskrnl/ke/main.c
@@ -463,6 +463,34 @@
 
   KeInit2();
   
+#if 1
+  if (KeMemoryMapRangeCount > 0)
+    {
+      DPRINT1("MemoryMap:\n");
+      for (i = 0; i < KeMemoryMapRangeCount; i++)
+        {
+          switch(KeMemoryMap[i].Type)
+            {
+              case 1:
+	        strcpy(str, "(usable)");
+	        break;
+	      case 2:
+	        strcpy(str, "(reserved)");
+	        break;
+	      case 3:
+	        strcpy(str, "(ACPI data)");
+	        break;
+	      case 4:
+	        strcpy(str, "(ACPI NVS)");
+	        break;
+	      default:
+	        sprintf(str, "type %lu", KeMemoryMap[i].Type);
+            }
+          DPRINT1("%08x - %08x %s\n", KeMemoryMap[i].BaseAddrLow, KeMemoryMap[i].BaseAddrLow + KeMemoryMap[i].LengthLow, str);
+	}
+    }
+#endif
+
   KeLowerIrql(PASSIVE_LEVEL);
 
   if (!SeInit1())
CVSspam 0.2.8