Skip to content
Snippets Groups Projects
Verified Commit 47c3b226 authored by Jacob Lorentzon's avatar Jacob Lorentzon :speech_balloon:
Browse files

Fix context switching.

Previously there was a triple fault, due to a combination of reasons
(e.g. rsp and rbp being ordered in the struct and in the assembly).

Now, the locks will be held __all the way until the new context__ has
been switched to, which completely eliminates any possibility that the
"pcid fault" originates here.

While I am unsure whether this will work, this could also be an
opportunity to be able to remove CONTEXT_SWITCH_LOCK fully.
parent ef4270e4
No related branches found
No related tags found
1 merge request!167Prevent possible UB, and use naked functions correctly.
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