]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/x86/math-emu/fpu_aux.c
x86: Introduce 'struct fpu' and related API
[mv-sheeva.git] / arch / x86 / math-emu / fpu_aux.c
index aa0987088774613ccc36ece2c33ee35e9f382866..62797f930511258fbb63e4238e1397ca4b800b22 100644 (file)
@@ -30,10 +30,10 @@ static void fclex(void)
 }
 
 /* Needs to be externally visible */
-void finit_task(struct task_struct *tsk)
+void finit_soft_fpu(struct i387_soft_struct *soft)
 {
-       struct i387_soft_struct *soft = &tsk->thread.xstate->soft;
        struct address *oaddr, *iaddr;
+       memset(soft, 0, sizeof(*soft));
        soft->cwd = 0x037f;
        soft->swd = 0;
        soft->ftop = 0; /* We don't keep top in the status word internally. */
@@ -52,7 +52,7 @@ void finit_task(struct task_struct *tsk)
 
 void finit(void)
 {
-       finit_task(current);
+       finit_task(&current->thread.fpu);
 }
 
 /*