User`s guide
Tasks
4-48
4.4.5 Task Hooks for Extra Context
Consider, for example, a system that has special hardware registers (say, for
extended addressing) that need to be preserved on a per task basis. In
Example 4-7 the function doCreate is used to allocate a buffer to maintain
these registers on a per task basis, doDelete is used to free this buffer, and
doSwitch is used to save and restore these registers.
If task objects are created with the Configuration Tool, the Switch function
should not assume (as Example 4-7 does) that a task’s environment is always
set by the Create function.










