kernel/eka/nkernsmp/nkerns.cpp
changeset 109 b3a1d9898418
parent 90 947f0dc9f7a8
child 201 43365a9b78a3
--- a/kernel/eka/nkernsmp/nkerns.cpp	Mon May 03 13:47:38 2010 +0300
+++ b/kernel/eka/nkernsmp/nkerns.cpp	Fri May 14 17:13:29 2010 +0300
@@ -242,8 +242,8 @@
 		iCurrent = iReady;
 		iCpuAffinity = iLastCpu;
 		iEventState = (iLastCpu<<EEventCpuShift) | (iLastCpu<<EThreadCpuShift);
-		ss.SSAddEntry(this);
-		i_NThread_Initial = TRUE;
+		i_NThread_Initial = TRUE; // must set as initial before 
+		ss.SSAddEntry(this);      // adding to subsched list
 		iACount = 1;
 		ss.iInitialThread = (NThread*)this;
 		NKern::Unlock();		// now that current thread is defined