xtensa: fix coprocessor context offset definitions
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 26 Nov 2018 23:18:26 +0000 (15:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 18:42:39 +0000 (19:42 +0100)
commitf403887502a876ec7efaf636886e5fb8183928fe
treed992a68ca27cd56bbe1d504e62406f7a034b75cb
parentc26e3c6c2dc45d4d580b33bb754e71d6deaa4e5a
xtensa: fix coprocessor context offset definitions

commit 03bc996af0cc71c7f30c384d8ce7260172423b34 upstream.

Coprocessor context offsets are used by the assembly code that moves
coprocessor context between the individual fields of the
thread_info::xtregs_cp structure and coprocessor registers.
This fixes coprocessor context clobbering on flushing and reloading
during normal user code execution and user process debugging in the
presence of more than one coprocessor in the core configuration.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/kernel/asm-offsets.c