]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: handle coprocessor exceptions in kernel mode
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 4 Jan 2019 02:26:16 +0000 (18:26 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 2 May 2022 02:51:23 +0000 (19:51 -0700)
commitc27456ba5ea72d6cbdcdcc4f3386dd1c072afad1
tree3ed537d4d7b286407c9455640ee9126414511ebf
parente5fabe029978f9161e2fd70753450be06c98be24
xtensa: handle coprocessor exceptions in kernel mode

In order to let drivers use xtensa coprocessors on behalf of the calling
process the kernel must handle coprocessor exceptions from the kernel
mode the same way as from the user mode.

This is not sufficient to allow using coprocessors transparently in IRQ
or softirq context. Should such users exist they must be aware of the
context and do the right thing, e.g. preserve the coprocessor state and
resore it after use.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/traps.c