Skip to content
Commit 0a987645 authored by Florian Fainelli's avatar Florian Fainelli Committed by Richard Weinberger
Browse files

um: Allow building and running on older hosts



Commit a78ff111 ("um: add extended processor state save/restore
support") and b6024b21 ("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: a78ff111 ("um: add extended processor state save/restore support")
Fixes: b6024b21 ("um: extend fpstate to _xstate to support YMM registers")
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent f44f1e7d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment