summary refs log tree commit diff
path: root/arch/um/include/asm/thread_info.h
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2017-07-29 17:03:23 +0200
committerRichard Weinberger <richard@nod.at>2017-09-13 22:24:38 +0200
commit6f602afda7275c24c20ba38b5b6cd4ed08561fff (patch)
tree33ee34f627f020b350fbc351eef16674588c3786 /arch/um/include/asm/thread_info.h
parent569dbb88e80deb68974ef6fdd6a13edb9d686261 (diff)
downloadlinux-6f602afda7275c24c20ba38b5b6cd4ed08561fff.tar.gz
um: Fix FP register size for XSTATE/XSAVE
Hard code max size. Taken from
https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdb/common/x86-xstate.h

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/include/asm/thread_info.h')
-rw-r--r--arch/um/include/asm/thread_info.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/um/include/asm/thread_info.h b/arch/um/include/asm/thread_info.h
index 053baff03674..9300f7630d2a 100644
--- a/arch/um/include/asm/thread_info.h
+++ b/arch/um/include/asm/thread_info.h
@@ -11,6 +11,7 @@
 #include <asm/types.h>
 #include <asm/page.h>
 #include <asm/segment.h>
+#include <sysdep/ptrace_user.h>
 
 struct thread_info {
 	struct task_struct	*task;		/* main task structure */
@@ -22,6 +23,8 @@ struct thread_info {
 					 	   0-0xBFFFFFFF for user
 						   0-0xFFFFFFFF for kernel */
 	struct thread_info	*real_thread;    /* Points to non-IRQ stack */
+	unsigned long aux_fp_regs[FP_SIZE];	/* auxiliary fp_regs to save/restore
+						   them out-of-band */
 };
 
 #define INIT_THREAD_INFO(tsk)			\