|
@@ -8,6 +8,7 @@
|
|
|
#include <asm/fpu/internal.h>
|
|
|
#include <asm/fpu/signal.h>
|
|
|
#include <asm/fpu/regset.h>
|
|
|
+#include <asm/fpu/xstate.h>
|
|
|
|
|
|
#include <asm/sigframe.h>
|
|
|
#include <asm/trace/fpu.h>
|
|
@@ -169,7 +170,7 @@ int copy_fpstate_to_sigframe(void __user *buf, void __user *buf_fx, int size)
|
|
|
sizeof(struct user_i387_ia32_struct), NULL,
|
|
|
(struct _fpstate_32 __user *) buf) ? -1 : 1;
|
|
|
|
|
|
- if (fpregs_active()) {
|
|
|
+ if (fpregs_active() || using_compacted_format()) {
|
|
|
/* Save the live register state to the user directly. */
|
|
|
if (copy_fpregs_to_sigframe(buf_fx))
|
|
|
return -1;
|