]> git.karo-electronics.de Git - karo-tx-linux.git/commit
um: Allow building and running on older hosts
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 25 May 2017 18:36:26 +0000 (11:36 -0700)
committerRichard Weinberger <richard@nod.at>
Wed, 5 Jul 2017 21:31:28 +0000 (23:31 +0200)
commit0a987645672ebde7844a9c0732a5a25f3d4bb6c6
tree838f821a1b4a2ba33219fabac4913ad0a00180f4
parentf44f1e7da7c8e3f4575d5d61c4df978496903fcc
um: Allow building and running on older hosts

Commit a78ff1112263 ("um: add extended processor state save/restore
support") and b6024b21fec8 ("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: a78ff1112263 ("um: add extended processor state save/restore support")
Fixes: b6024b21fec8 ("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>
arch/x86/um/os-Linux/registers.c
arch/x86/um/user-offsets.c