- Only reserve APIC memory on x86

- Don't reserve 32 pages for VGA registers -- deprecated since 11917, 4 years ago
- Use KeNumberProcessors instead of MAXIMUM_PROCESSORS when mapping the PCRs
- Remove MmInitMemoryAreas, a nop since revision 1093, 8 years ago
- Remove unused KeMemoryMapRangeCount/KeMemoryMap

svn path=/trunk/; revision=38500
This commit is contained in:
Stefan Ginsberg 2009-01-01 17:00:38 +00:00
parent 56d6ef019e
commit fbd7f8a2aa
4 changed files with 3 additions and 37 deletions

View file

@ -390,10 +390,6 @@ typedef VOID
/* marea.c *******************************************************************/
NTSTATUS
NTAPI
MmInitMemoryAreas(VOID);
NTSTATUS
NTAPI
MmCreateMemoryArea(

View file

@ -18,10 +18,6 @@
KSPIN_LOCK KiFreezeExecutionLock;
KSPIN_LOCK Ki486CompatibilityLock;
/* BIOS Memory Map. Not NTLDR-compliant yet */
extern ULONG KeMemoryMapRangeCount;
extern ADDRESS_RANGE KeMemoryMap[64];
/* FUNCTIONS *****************************************************************/
VOID

View file

@ -703,21 +703,6 @@ MmFindGapAtAddress(
}
}
/**
* @name MmInitMemoryAreas
*
* Initialize the memory area list implementation.
*/
NTSTATUS
INIT_FUNCTION
NTAPI
MmInitMemoryAreas(VOID)
{
DPRINT("MmInitMemoryAreas()\n");
return(STATUS_SUCCESS);
}
/**
* @name MmFreeMemoryArea

View file

@ -118,8 +118,6 @@ MmInitVirtualMemory()
BoundaryAddressMultiple.QuadPart = 0;
MmInitMemoryAreas();
DPRINT("NonPagedPool %x - %x, PagedPool %x - %x\n", MiNonPagedPoolStart, (ULONG_PTR)MiNonPagedPoolStart + MiNonPagedPoolLength - 1,
MmPagedPoolBase, (ULONG_PTR)MmPagedPoolBase + MmPagedPoolSize - 1);
@ -134,13 +132,14 @@ MmInitVirtualMemory()
MmCreateMemoryArea(MmGetKernelAddressSpace(),
MEMORY_AREA_SYSTEM,
&BaseAddress,
PAGE_SIZE * MAXIMUM_PROCESSORS,
PAGE_SIZE * KeNumberProcessors,
PAGE_READWRITE,
&MArea,
TRUE,
0,
BoundaryAddressMultiple);
#if defined(_M_IX86)
/* Local APIC base */
BaseAddress = (PVOID)0xFEE00000;
MmCreateMemoryArea(MmGetKernelAddressSpace(),
@ -164,17 +163,7 @@ MmInitVirtualMemory()
TRUE,
0,
BoundaryAddressMultiple);
BaseAddress = (PVOID)0xFF3A0000;
MmCreateMemoryArea(MmGetKernelAddressSpace(),
MEMORY_AREA_SYSTEM,
&BaseAddress,
0x20000,
PAGE_READWRITE,
&MArea,
TRUE,
0,
BoundaryAddressMultiple);
#endif
BaseAddress = MiNonPagedPoolStart;
MmCreateMemoryArea(MmGetKernelAddressSpace(),