linux/arch/x86/um/os-Linux
Florian Fainelli 0a98764567 um: Allow building and running on older hosts
Commit a78ff11122 ("um: add extended processor state save/restore
support") and b6024b21fe ("um: extend fpstate to _xstate to support
YMM registers") forced the use of the x86 FP _xstate and
PTRACE_GETREGSET/SETREGSET. On older hosts, we would neither be able to
build UML nor run it anymore with these two commits applied because we
don't have definitions for struct _xstate nor these two ptrace requests.

We can determine at build time which fp context structure to check
against, just like we can keep using the old i387 fp save/restore if
PTRACE_GETRESET/SETREGSET are not defined.

Fixes: a78ff11122 ("um: add extended processor state save/restore support")
Fixes: b6024b21fe ("um: extend fpstate to _xstate to support YMM registers")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2017-07-05 23:31:28 +02:00
..
Makefile
mcontext.c
prctl.c x86/arch_prctl/64: Rename do_arch_prctl() to do_arch_prctl_64() 2017-03-20 16:10:32 +01:00
registers.c um: Allow building and running on older hosts 2017-07-05 23:31:28 +02:00
task_size.c um: use %lx format specifiers for unsigned longs 2016-03-05 22:21:28 +01:00
tls.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00