Skip to content
Snippets Groups Projects
Commit bcbf6915 authored by Avi Kivity's avatar Avi Kivity
Browse files

sched: fix segfault switching a thread back to itself

Since we don't have an idle thread yet, if a thread is woken up that was
last running, we end up calling switch_to() for the current thread, which
breaks badly.  Add a test for this case.
parent 61aebfd0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment