[CRIU] [PATCH 3/6] arm: don't copy the FPU frame to/from CoreEntry with a single memcpy()

Cyrill Gorcunov gorcunov at gmail.com
Tue Oct 8 02:22:16 PDT 2013


On Tue, Oct 08, 2013 at 11:45:35AM +0400, Alexander Kartashov wrote:
>  
> -	memcpy(CORE_THREAD_ARCH_INFO(core)->fpstate->vfp_regs, &vfp.fpregs, sizeof(vfp.fpregs));
> +	for (i = 0; i < 32; ++i)

Maybe ?
	for (i = 0; i < ARRAY_SIZE(vfp.fpregs); i++)


More information about the CRIU mailing list