summaryrefslogtreecommitdiffstats
path: root/arch/um/kernel
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/kernel
parent569dbb88e80deb68974ef6fdd6a13edb9d686261 (diff)
downloadop-kernel-dev-6f602afda7275c24c20ba38b5b6cd4ed08561fff.zip
op-kernel-dev-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/kernel')
-rw-r--r--arch/um/kernel/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c
index 2c7f721..691b83b 100644
--- a/arch/um/kernel/process.c
+++ b/arch/um/kernel/process.c
@@ -131,7 +131,7 @@ void new_thread_handler(void)
* callback returns only if the kernel thread execs a process
*/
n = fn(arg);
- userspace(&current->thread.regs.regs);
+ userspace(&current->thread.regs.regs, current_thread_info()->aux_fp_regs);
}
/* Called magically, see new_thread_handler above */
@@ -150,7 +150,7 @@ void fork_handler(void)
current->thread.prev_sched = NULL;
- userspace(&current->thread.regs.regs);
+ userspace(&current->thread.regs.regs, current_thread_info()->aux_fp_regs);
}
int copy_thread(unsigned long clone_flags, unsigned long sp,
OpenPOWER on IntegriCloud