From 2868b3098a4786e2f2a1b4916f5f680dd8215bfe Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Sun, 16 Oct 2016 16:25:24 -0600 Subject: [PATCH] Reenable fx --- arch/x86_64/src/context.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86_64/src/context.rs b/arch/x86_64/src/context.rs index 9f62366..8482ec3 100644 --- a/arch/x86_64/src/context.rs +++ b/arch/x86_64/src/context.rs @@ -70,7 +70,6 @@ impl Context { #[inline(never)] #[naked] pub unsafe fn switch_to(&mut self, next: &mut Context) { - /* asm!("fxsave [$0]" : : "r"(self.fx) : "memory" : "intel", "volatile"); self.loadable = true; if next.loadable { @@ -78,7 +77,6 @@ impl Context { }else{ asm!("fninit" : : : "memory" : "intel", "volatile"); } - */ asm!("mov $0, cr3" : "=r"(self.cr3) : : "memory" : "intel", "volatile"); if next.cr3 != self.cr3 {