Use 64-bit versions of xsave and xrstor

This commit is contained in:
Jeremy Soller
2024-09-04 21:22:10 -06:00
parent 09e7e66e00
commit 1c00450127
+4 -4
View File
@@ -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}]