X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fpalacios-stubs.c;h=d5e27b35b0e30bbdbf8331d851cc4607db4f682a;hb=a2c42ecf5c65f014a1a22b6a3fc3548482c4ec22;hp=ba9da58bc5d0318ea2389ec0591d940978d1be81;hpb=fd288e4dc51177f037f4752861eb95971fb1d1a0;p=palacios.git diff --git a/linux_module/palacios-stubs.c b/linux_module/palacios-stubs.c index ba9da58..d5e27b3 100644 --- a/linux_module/palacios-stubs.c +++ b/linux_module/palacios-stubs.c @@ -832,10 +832,14 @@ palacios_mutex_unlock_irqrestore(void *mutex, void *flags) void palacios_used_fpu(void) { - struct thread_info *cur = current_thread_info(); - // We assume we are not preemptible here... - cur->status |= 1; +#ifndef TS_USEDFPU + struct task_struct *tsk = current; + tsk->thread.fpu.has_fpu = 1; +#else + struct thread_info *cur = current_thread_info(); + cur->status |= TS_USEDFPU; +#endif clts(); // After this, FP Save should be handled by Linux if it // switches to a different task and that task uses FPU