[CRIU] [PATCHv3 26/26] x86: restore TLS
Cyrill Gorcunov
gorcunov at gmail.com
Mon Jun 20 07:13:30 PDT 2016
On Mon, Jun 20, 2016 at 04:42:57PM +0300, Dmitry Safonov wrote:
> +
> +extern unsigned long call32_from_64(void *stack, void *func);
> +
> +asm ( " .pushsection .text \n"
> + " .global restore_set_thread_area \n"
> + " .code32 \n"
> + "restore_set_thread_area: \n"
> + " mov %edx, %ebx \n"
> + " movl $"__stringify(__NR32_set_thread_area)",%eax\n"
> + " int $0x80 \n"
> + " ret \n"
> + " .code64");
> +extern char restore_set_thread_area;
Don't you rather have to popsection instead of .code64?
The rest looks good for me.
Reviewed-by: Cyrill Gorcunov <gorcunov at openvz.org>
More information about the CRIU
mailing list