Commit 88014eb0 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

compel: arch, x86 -- Don't require compat frame alignment

Acked-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Acked-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 9f6edce0
...@@ -115,7 +115,7 @@ int sigreturn_prep_fpu_frame_plain(struct rt_sigframe *sigframe, ...@@ -115,7 +115,7 @@ int sigreturn_prep_fpu_frame_plain(struct rt_sigframe *sigframe,
if (sigframe->is_native && (addr % 64ul) == 0ul) { if (sigframe->is_native && (addr % 64ul) == 0ul) {
sigframe->native.uc.uc_mcontext.fpstate = &fpu_state->xsave; sigframe->native.uc.uc_mcontext.fpstate = &fpu_state->xsave;
} else if (!sigframe->is_native && (addr % 32ul) == 0ul) { } else if (!sigframe->is_native) {
sigframe->compat.uc.uc_mcontext.fpstate = (uint32_t)addr; sigframe->compat.uc.uc_mcontext.fpstate = (uint32_t)addr;
} else { } else {
pr_err("Unaligned address passed: %lx (native %d)\n", pr_err("Unaligned address passed: %lx (native %d)\n",
......
Markdown is supported
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