[CRIU] [PATCHv1 04/26] sigframe: prepare macro helpers for two sigframes

Christopher Covington cov at codeaurora.org
Thu Jun 16 07:15:11 PDT 2016


On 06/16/2016 06:53 AM, Dmitry Safonov wrote:
> As on x86 compat/native sigframe differ, I need to generalize/modify
> sigframe macro helpers having in mind:
> - SIGFRAME_OFFSET differ between native/compat tasks, so it takes
>   sigframe parameter now, which will be used in following patches
>   (also renamed it in RT_SIGFRAME_OFFSET to complement other macros)
> - RT_SIGFRAME_FPU is now pointer, because each caller takes result's
>   address with &RT_SIGFRAME_FPU(...)
> - sigreturn_prep_fpu_frame now takes rt_sigframe parameter, as
>   address of fpu_state pointer on x86 will depend on native/compat
>   frame type, so I check local sigframe's type and count address
>   for rsigframe. (See in the very next commit).
> 
> Cc: Laurent Dufour <ldufour at linux.vnet.ibm.com>
> Cc: Christopher Covington <cov at codeaurora.org>
> Cc: Cyrill Gorcunov <gorcunov at openvz.org>
> Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>

Reviewed-by: Christopher Covington <cov at codeaurora.org>

-- 
Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project


More information about the CRIU mailing list