]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: fix coprocessor context offset definitions
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 26 Nov 2018 23:18:26 +0000 (15:18 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 27 Nov 2018 02:37:49 +0000 (18:37 -0800)
commit9a211f8fa4ed3702b8b903987c1dd96d34409263
tree2fc71a59a6e40c8a5309336f7225f78987418bb5
parent88d89562664d816aa63ac54a0a6dcaa6cc606c99
xtensa: fix coprocessor context offset definitions

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>
arch/xtensa/kernel/asm-offsets.c