How would I go about implementing a context switch from within the interrupt? #613
Unanswered
wmjenkinson
asked this question in
Q&A
Replies: 1 comment
-
|
You have to save all registers on entry to the IRQ handler in a structure, swap the registers of the new task with this struct's contents for the context switch and reload all registers from that struct on return from the IRQ. That's not easy to realize. Also remember that many functions in Circle are not re-entrant. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How would I go about implementing a context switch from within the interrupt? I know I need to watch the interrupt nesting and only when the interrupt nesting is 0 make the switch.
Beta Was this translation helpful? Give feedback.
All reactions