Reenable fx

This commit is contained in:
Jeremy Soller 2016-10-16 16:25:24 -06:00
parent 9c2a45d0bf
commit 2868b3098a

View file

@ -70,7 +70,6 @@ impl Context {
#[inline(never)] #[inline(never)]
#[naked] #[naked]
pub unsafe fn switch_to(&mut self, next: &mut Context) { pub unsafe fn switch_to(&mut self, next: &mut Context) {
/*
asm!("fxsave [$0]" : : "r"(self.fx) : "memory" : "intel", "volatile"); asm!("fxsave [$0]" : : "r"(self.fx) : "memory" : "intel", "volatile");
self.loadable = true; self.loadable = true;
if next.loadable { if next.loadable {
@ -78,7 +77,6 @@ impl Context {
}else{ }else{
asm!("fninit" : : : "memory" : "intel", "volatile"); asm!("fninit" : : : "memory" : "intel", "volatile");
} }
*/
asm!("mov $0, cr3" : "=r"(self.cr3) : : "memory" : "intel", "volatile"); asm!("mov $0, cr3" : "=r"(self.cr3) : : "memory" : "intel", "volatile");
if next.cr3 != self.cr3 { if next.cr3 != self.cr3 {