mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +00:00
Fixed page list initialization
svn path=/trunk/; revision=1742
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user