mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +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);
|
||||
Pcr->Number = Id;
|
||||
Pcr->SetMember = 1 << Id;
|
||||
Pcr->Tib.Self = &Pcr->Tib;
|
||||
Pcr->Self = (PKPCR)Pcr;
|
||||
Pcr->Prcb = &Pcr->PrcbData;
|
||||
Pcr->Irql = SYNCH_LEVEL;
|
||||
|
||||
Pcr->PrcbData.SetMember = 1 << Id;
|
||||
Pcr->PrcbData.MHz = BootPcr->PrcbData.MHz;
|
||||
Pcr->StallScaleFactor = BootPcr->StallScaleFactor;
|
||||
|
||||
|
@ -284,6 +286,8 @@ KeInit1(PCHAR CommandLine, PULONG LastKernelAddress)
|
|||
KPCR->IDT = (PUSHORT)KiIdt;
|
||||
KPCR->TSS = &KiBootTss;
|
||||
KPCR->Number = 0;
|
||||
KPCR->SetMember = 1 << 0;
|
||||
KPCR->PrcbData.SetMember = 1 << 0;
|
||||
KiPcrInitDone = 1;
|
||||
PcrsAllocated++;
|
||||
|
||||
|
|
Loading…
Reference in a new issue