mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
- Print the memory map at start up to the debug port.
svn path=/trunk/; revision=9556
This commit is contained in:
parent
d73db829fa
commit
9fa3a2fdb7
1 changed files with 29 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue