Simplify code

svn path=/trunk/; revision=30228
This commit is contained in:
Hervé Poussineau 2007-11-06 21:36:47 +00:00
parent 12f6b06910
commit 643d746aa9
4 changed files with 5 additions and 5 deletions

View file

@ -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 */

View file

@ -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)

View file

@ -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;

View file

@ -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;