- Print the memory map at start up to the debug port.

svn path=/trunk/; revision=9556
This commit is contained in:
Hartmut Birr 2004-05-29 22:10:05 +00:00
parent d73db829fa
commit 9fa3a2fdb7

View file

@ -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 @@ ExpInitializeExecutive(VOID)
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())