[CRIU] [PATCH 2/8] [v3] cr: generalize the type to store the value of the TLS register
Christopher Covington
cov at codeaurora.org
Tue Mar 18 12:02:11 PDT 2014
On 03/18/2014 01:05 PM, Alexander Kartashov wrote:
> Supported machine architectures provide TLS stogares of different sizes:
> the size of the TLS storage in x86-64 is 24 bytes, ARM --- 4 bytes
> and upcoming AArch64 --- 8 bytes. This means every supported architecture
> needs a specific type to store the value of the TLS register.
>
> This patch reworks the insterface of the routines arch_get_tls()
> and restore_tls() passing them the TLS storage by pointer
> rather than by value to simplify the TLS stub for x86.
>
> Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
I'm not very good with x86, but the ARM stuff looks good to me.
Reviewed-by: Christopher Covington <cov at codeaurora.org>
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by the Linux Foundation.
More information about the CRIU
mailing list