Skip to content
Snippets Groups Projects
Verified Commit 1c004501 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Use 64-bit versions of xsave and xrstor

parent 09e7e66e
Branches master
No related tags found
No related merge requests found
......@@ -161,15 +161,15 @@ pub unsafe fn switch_to(prev: &mut super::Context, next: &mut super::Context) {
then1: ["
mov eax, 0xffffffff
mov edx, eax
xsaveopt [{prev_fx}]
xrstor [{next_fx}]
xsaveopt64 [{prev_fx}]
xrstor64 [{next_fx}]
"],
feature2: "xsave",
then2: ["
mov eax, 0xffffffff
mov edx, eax
xsave [{prev_fx}]
xrstor [{next_fx}]
xsave64 [{prev_fx}]
xrstor64 [{next_fx}]
"],
default: ["
fxsave64 [{prev_fx}]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment