mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:05:43 +00:00
Simplify code
svn path=/trunk/; revision=30228
This commit is contained in:
parent
12f6b06910
commit
643d746aa9
4 changed files with 5 additions and 5 deletions
|
@ -149,7 +149,7 @@ IopInitLookasideLists(VOID)
|
|||
for (i = 0; i < KeNumberProcessors; i++)
|
||||
{
|
||||
/* Get the PRCB for this CPU */
|
||||
Prcb = ((PKPCR)(KIP0PCRADDRESS + i * PAGE_SIZE))->Prcb;
|
||||
Prcb = KiProcessorBlock[i];
|
||||
DPRINT("Setting up lookaside for CPU: %x, PRCB: %p\n", i, Prcb);
|
||||
|
||||
/* Set the Large IRP List */
|
||||
|
|
|
@ -33,7 +33,7 @@ KiIpiSendRequest(IN KAFFINITY TargetSet,
|
|||
if (TargetSet & Current)
|
||||
{
|
||||
/* Get the PRCB for this CPU */
|
||||
Prcb = ((PKPCR)(KIP0PCRADDRESS + i * PAGE_SIZE))->Prcb;
|
||||
Prcb = KiProcessorBlock[i];
|
||||
|
||||
InterlockedBitTestAndSet((PLONG)&Prcb->IpiFrozen, IpiRequest);
|
||||
HalRequestIpi(i);
|
||||
|
@ -69,7 +69,7 @@ KiIpiSendPacket(IN KAFFINITY TargetSet,
|
|||
{
|
||||
if (TargetSet & Processor)
|
||||
{
|
||||
Prcb = ((PKPCR)(KIP0PCRADDRESS + i * PAGE_SIZE))->Prcb;
|
||||
Prcb = KiProcessorBlock[i];
|
||||
while (0 != InterlockedCompareExchangeUL(&Prcb->SignalDone, (LONG)CurrentPrcb, 0));
|
||||
InterlockedBitTestAndSet((PLONG)&Prcb->IpiFrozen, IPI_SYNCH_REQUEST);
|
||||
if (Processor != CurrentPrcb->SetMember)
|
||||
|
|
|
@ -480,7 +480,7 @@ KeStartThread(IN OUT PKTHREAD Thread)
|
|||
#ifdef CONFIG_SMP
|
||||
/* Get the KNODE and its PRCB */
|
||||
Node = KeNodeBlock[Process->IdealNode];
|
||||
NodePrcb = ((PKPCR)(KIP0PCRADDRESS + Process->ThreadSeed * PAGE_SIZE))->Prcb;
|
||||
NodePrcb = KiProcessorBlock[Process->ThreadSeed];
|
||||
|
||||
/* Calculate affinity mask */
|
||||
Set = ~NodePrcb->MultiThreadProcessorSet;
|
||||
|
|
|
@ -67,7 +67,7 @@ ObInit2(VOID)
|
|||
for (i = 0; i < KeNumberProcessors; i++)
|
||||
{
|
||||
/* Get the PRCB for this CPU */
|
||||
Prcb = ((PKPCR)(KIP0PCRADDRESS + i * PAGE_SIZE))->Prcb;
|
||||
Prcb = KiProcessorBlock[(int)i];
|
||||
|
||||
/* Set the OBJECT_CREATE_INFORMATION List */
|
||||
Prcb->PPLookasideList[LookasideCreateInfoList].L = &ObpCiLookasideList.L;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue