Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80064
b: refs/heads/master
c: cc927a2
h: refs/heads/master
v: v3
  • Loading branch information
Roland McGrath authored and Ingo Molnar committed Jan 30, 2008
1 parent 93052d8 commit 78ec7a6
Show file tree
Hide file tree
Showing 3 changed files with 234 additions and 114 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99f8ecdf4506010feda26ffe4ac0d23962947106
refs/heads/master: cc927a25bd704448b18b095c658cbfdd79dab865
31 changes: 0 additions & 31 deletions trunk/arch/x86/kernel/i387_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,37 +71,6 @@ void init_fpu(struct task_struct *child)
set_stopped_child_used_math(child);
}

/*
* Signal frame handlers.
*/

int save_i387(struct _fpstate __user *buf)
{
struct task_struct *tsk = current;
int err = 0;

BUILD_BUG_ON(sizeof(struct user_i387_struct) !=
sizeof(tsk->thread.i387.fxsave));

if ((unsigned long)buf % 16)
printk("save_i387: bad fpstate %p\n",buf);

if (!used_math())
return 0;
clear_used_math(); /* trigger finit */
if (task_thread_info(tsk)->status & TS_USEDFPU) {
err = save_i387_checking((struct i387_fxsave_struct __user *)buf);
if (err) return err;
task_thread_info(tsk)->status &= ~TS_USEDFPU;
stts();
} else {
if (__copy_to_user(buf, &tsk->thread.i387.fxsave,
sizeof(struct i387_fxsave_struct)))
return -1;
}
return 1;
}

/*
* ptrace request handlers.
*/
Expand Down
Loading

0 comments on commit 78ec7a6

Please sign in to comment.