This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Saving context before a switch

Hello,
I am working with an xc167. Currently I use a round-robin schedular, but I want to write my own preemptive schedular. I have browsed through the user manual, but it is still not 100% clear to me exactly which registers should be saved per task. I was thinking of the general purpose registers, SP, IP, PSW...
Can anybody advise me as to the full list?
Thanks in advance.

0