]> git.baikalelectronics.ru Git - kernel.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)
commit5082c220039655bba3d1b50068bc7709a3bde0f9
tree838f821a1b4a2ba33219fabac4913ad0a00180f4
parent464dbc8bbd33126da780f9493349b37d1e1b4a6b
um: Allow building and running on older hosts

Commit a08bd4d8a73a ("um: add extended processor state save/restore
support") and 8bd92b063988 ("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: a08bd4d8a73a ("um: add extended processor state save/restore support")
Fixes: 8bd92b063988 ("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