mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
Unmap the low memory in SMP mode in MmInit3.
svn path=/trunk/; revision=3881
This commit is contained in:
parent
5b1b2a4860
commit
2774a7c60b
1 changed files with 12 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: mminit.c,v 1.41 2002/10/01 19:27:22 chorns Exp $
|
/* $Id: mminit.c,v 1.42 2002/12/16 22:59:44 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top directory
|
* COPYRIGHT: See COPYING in the top directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -266,7 +266,9 @@ VOID MmInit1(ULONG FirstKrnlPhysAddr,
|
||||||
* Unmap low memory
|
* Unmap low memory
|
||||||
*/
|
*/
|
||||||
#ifndef MP
|
#ifndef MP
|
||||||
/* FIXME: This is broken in SMP mode */
|
/* In SMP mode we unmap the low memory in MmInit3.
|
||||||
|
The APIC needs the mapping of the first pages
|
||||||
|
while the processors are starting up. */
|
||||||
MmDeletePageTable(NULL, 0);
|
MmDeletePageTable(NULL, 0);
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
|
@ -351,6 +353,14 @@ VOID MmInit2(VOID)
|
||||||
|
|
||||||
VOID MmInit3(VOID)
|
VOID MmInit3(VOID)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
* Unmap low memory
|
||||||
|
*/
|
||||||
|
#ifdef MP
|
||||||
|
/* In SMP mode we can unmap the low memory
|
||||||
|
if all processors are started. */
|
||||||
|
MmDeletePageTable(NULL, 0);
|
||||||
|
#endif
|
||||||
MmInitPagerThread();
|
MmInitPagerThread();
|
||||||
MmCreatePhysicalMemorySection();
|
MmCreatePhysicalMemorySection();
|
||||||
MmInitializeRmapList();
|
MmInitializeRmapList();
|
||||||
|
|
Loading…
Reference in a new issue