Fixed page list initialization

svn path=/trunk/; revision=1742
This commit is contained in:
David Welch 2001-03-28 11:57:51 +00:00
parent eca8ca8582
commit bde0898ab5
2 changed files with 5 additions and 4 deletions

View file

@ -105,10 +105,10 @@ void InitVGAMode()
vps = VideoPortInt10(NULL, &vxba);
// setMode(Mode12);
WRITE_PORT_USHORT((PUSHORT)0x3C4, 0x0f02); // index=MASK MAP, write to all bitplanes
i = vidmem[0];
// WRITE_PORT_USHORT((PUSHORT)0x3C4, 0x0f02); // index=MASK MAP, write to all bitplanes
// i = vidmem[0];
// VideoPortZeroMemory(vidmem, 38400);
VideoPortZeroMemory(vidmem, 64000);
// VideoPortZeroMemory(vidmem, 64000);
vgaPreCalc();
}

View file

@ -147,7 +147,8 @@ PVOID MmInitializePageList(PVOID FirstPhysKernelAddress,
InitializeListHead(&FreePageListHead);
InitializeListHead(&BiosPageListHead);
Reserved = (MemorySizeInPages * sizeof(PHYSICAL_PAGE)) / PAGESIZE;
Reserved =
PAGE_ROUND_UP((MemorySizeInPages * sizeof(PHYSICAL_PAGE))) / PAGESIZE;
MmPageArray = (PHYSICAL_PAGE *)LastKernelAddress;
DPRINT("Reserved %d\n", Reserved);