kernel/eka/nkernsmp/nkerns.cpp
changeset 149 d9f1e5bfe28c
parent 90 947f0dc9f7a8
child 201 43365a9b78a3
equal deleted inserted replaced
135:5e441a173c63 149:d9f1e5bfe28c
   240 		iLastCpu = (TUint8)ss.iCpuNum;
   240 		iLastCpu = (TUint8)ss.iCpuNum;
   241 		iReady = (TUint8)(iLastCpu | EReadyOffset);
   241 		iReady = (TUint8)(iLastCpu | EReadyOffset);
   242 		iCurrent = iReady;
   242 		iCurrent = iReady;
   243 		iCpuAffinity = iLastCpu;
   243 		iCpuAffinity = iLastCpu;
   244 		iEventState = (iLastCpu<<EEventCpuShift) | (iLastCpu<<EThreadCpuShift);
   244 		iEventState = (iLastCpu<<EEventCpuShift) | (iLastCpu<<EThreadCpuShift);
   245 		ss.SSAddEntry(this);
   245 		i_NThread_Initial = TRUE; // must set as initial before 
   246 		i_NThread_Initial = TRUE;
   246 		ss.SSAddEntry(this);      // adding to subsched list
   247 		iACount = 1;
   247 		iACount = 1;
   248 		ss.iInitialThread = (NThread*)this;
   248 		ss.iInitialThread = (NThread*)this;
   249 		NKern::Unlock();		// now that current thread is defined
   249 		NKern::Unlock();		// now that current thread is defined
   250 		}
   250 		}
   251 	else
   251 	else