mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
Initialized SetMember as mask of the current processor.
svn path=/trunk/; revision=16624
This commit is contained in:
parent
08e09be28a
commit
d40d2d7c83
1 changed files with 4 additions and 0 deletions
|
@ -182,11 +182,13 @@ KePrepareForApplicationProcessorInit(ULONG Id)
|
||||||
*/
|
*/
|
||||||
memset(Pcr, 0, PAGE_SIZE);
|
memset(Pcr, 0, PAGE_SIZE);
|
||||||
Pcr->Number = Id;
|
Pcr->Number = Id;
|
||||||
|
Pcr->SetMember = 1 << Id;
|
||||||
Pcr->Tib.Self = &Pcr->Tib;
|
Pcr->Tib.Self = &Pcr->Tib;
|
||||||
Pcr->Self = (PKPCR)Pcr;
|
Pcr->Self = (PKPCR)Pcr;
|
||||||
Pcr->Prcb = &Pcr->PrcbData;
|
Pcr->Prcb = &Pcr->PrcbData;
|
||||||
Pcr->Irql = SYNCH_LEVEL;
|
Pcr->Irql = SYNCH_LEVEL;
|
||||||
|
|
||||||
|
Pcr->PrcbData.SetMember = 1 << Id;
|
||||||
Pcr->PrcbData.MHz = BootPcr->PrcbData.MHz;
|
Pcr->PrcbData.MHz = BootPcr->PrcbData.MHz;
|
||||||
Pcr->StallScaleFactor = BootPcr->StallScaleFactor;
|
Pcr->StallScaleFactor = BootPcr->StallScaleFactor;
|
||||||
|
|
||||||
|
@ -284,6 +286,8 @@ KeInit1(PCHAR CommandLine, PULONG LastKernelAddress)
|
||||||
KPCR->IDT = (PUSHORT)KiIdt;
|
KPCR->IDT = (PUSHORT)KiIdt;
|
||||||
KPCR->TSS = &KiBootTss;
|
KPCR->TSS = &KiBootTss;
|
||||||
KPCR->Number = 0;
|
KPCR->Number = 0;
|
||||||
|
KPCR->SetMember = 1 << 0;
|
||||||
|
KPCR->PrcbData.SetMember = 1 << 0;
|
||||||
KiPcrInitDone = 1;
|
KiPcrInitDone = 1;
|
||||||
PcrsAllocated++;
|
PcrsAllocated++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue