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