Am 11.02.2003 02:03:25, schrieb Thomas Carley <[email protected]>:

>Thank you for the clarification. I am writing the task switching code for
>an RTOS and need to save the entire contents of the task. In this case I
>think that I need to save all registers (r4-r15), regardless of whether
>they are used is the particular function interrupted or not.
>
>In this case, is there an option to either have the compiler save all
>registers? Or non of them and I can save them explicitly. Perhaps I should
>write this code in assemblyto give me full control.

yes, inline assembly that is. see "examples/tasker" in our CVS, where you
already find a cooperative task scheduler.

chris




Reply via email to