1 #include <linux/kernel.h>
2 #include <linux/types.h>
5 #include <linux/sched.h>
7 #include <asm/sigcontext.h>
9 #include <asm/ptrace.h>
10 #include <asm/switch_to.h>
18 if (test_tsk_thread_flag(
current, TIF_USEDFPU)) {
19 put_psr(get_psr() |
PSR_EF);
23 clear_tsk_thread_flag(
current, TIF_USEDFPU);
27 put_psr(get_psr() |
PSR_EF);
36 (
sizeof(
unsigned long) * 32));
39 if (
current->thread.fpqdepth != 0)
42 ((
sizeof(
unsigned long) +
43 (
sizeof(
unsigned long *)))*16));
52 if (test_tsk_thread_flag(
current, TIF_USEDFPU))
61 clear_tsk_thread_flag(
current, TIF_USEDFPU);
67 (
sizeof(
unsigned long) * 32));
70 if (
current->thread.fpqdepth != 0)
73 ((
sizeof(
unsigned long) +
74 (
sizeof(
unsigned long *)))*16));
82 for (i = 0; i < wsaved; i++) {
90 err |=
__put_user(fp, &rwin->rwbuf_stkptrs[i]);
105 for (i = 0; i < wsaved; i++) {
110 &rp->rwbuf_stkptrs[i]);