From 1c00450127bd98e885d84ff9f26f27423e39d11e Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 4 Sep 2024 21:22:10 -0600 Subject: [PATCH] Use 64-bit versions of xsave and xrstor --- src/context/arch/x86_64.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/context/arch/x86_64.rs b/src/context/arch/x86_64.rs index 8ea07fc74a..2349b4fb13 100644 --- a/src/context/arch/x86_64.rs +++ b/src/context/arch/x86_64.rs @@ -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}]