mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 14:19:25 +00:00
Fixed page list initialization
svn path=/trunk/; revision=1742
This commit is contained in:
parent
eca8ca8582
commit
bde0898ab5
2 changed files with 5 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue