Still mess, how the new forked child task is switched... > From: bo-liu@xxxxxxxxxxx > To: sparclinux@xxxxxxxxxxxxxxx > Subject: where forked child task first return? > Date: Fri, 12 Dec 2008 10:16:52 +0800 > > > when task is forked, it will copy his parent's kernel stack. > > Then when first time switch_to a new created task, will change to its kernel stack. > > But, in switch_to macro will " ldd [%%sp + 0x38], %%i6 ", for child task, stack frame is copyed > > from parent, so %%i6 will also the same as the parent's . > > so switch to child task will return to parent's kernel stack again ? _________________________________________________________________ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline-- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html