Task Switching issue
Posted: Tue Nov 15, 2005 9:59 pm
I just realized when I went to fix up my task switching that it currently can only work with user->kernel transitions due to assuming the presence of useresp and ss fields in interrupt stack frames.
Given that at least one thread (kidle) WILL be running in kernel space, what can be done to make threads work when there may or may not be userland stack fields? My threads use data members to store the thread status.
Source code is at http://cvs.sourceforge.net/viewcvs.py/g ... 8&view=log
Given that at least one thread (kidle) WILL be running in kernel space, what can be done to make threads work when there may or may not be userland stack fields? My threads use data members to store the thread status.
Source code is at http://cvs.sourceforge.net/viewcvs.py/g ... 8&view=log