diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2017-07-29 17:03:23 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2017-09-13 22:24:38 +0200 |
commit | 6f602afda7275c24c20ba38b5b6cd4ed08561fff (patch) | |
tree | 33ee34f627f020b350fbc351eef16674588c3786 /arch/x86/um/user-offsets.c | |
parent | 569dbb88e80deb68974ef6fdd6a13edb9d686261 (diff) | |
download | linux-6f602afda7275c24c20ba38b5b6cd4ed08561fff.tar.gz linux-6f602afda7275c24c20ba38b5b6cd4ed08561fff.tar.bz2 linux-6f602afda7275c24c20ba38b5b6cd4ed08561fff.zip |
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/x86/um/user-offsets.c')
-rw-r--r-- | arch/x86/um/user-offsets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/um/user-offsets.c b/arch/x86/um/user-offsets.c index 02250b2633b8..3099c209546f 100644 --- a/arch/x86/um/user-offsets.c +++ b/arch/x86/um/user-offsets.c @@ -51,7 +51,7 @@ void foo(void) DEFINE(HOST_ORIG_AX, ORIG_EAX); #else #ifdef FP_XSTATE_MAGIC1 - DEFINE(HOST_FP_SIZE, sizeof(struct _xstate) / sizeof(unsigned long)); + DEFINE_LONGS(HOST_FP_SIZE, 2696); #else DEFINE(HOST_FP_SIZE, sizeof(struct _fpstate) / sizeof(unsigned long)); #endif |