]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: support artificial division by 0 exception
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 13 May 2022 15:11:14 +0000 (08:11 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 17 May 2022 10:35:43 +0000 (03:35 -0700)
commit9ee8c187059f4a7295bec4eefe64b5486a798112
tree3b4b0e3aa88dbb682fce761e7b4a79fe5f586c0b
parent87be367811c7f77b10e255c73cb19c4b0425198f
xtensa: support artificial division by 0 exception

On xtensa cores wihout hardware division option division support
functions from libgcc react to division by 0 attempt by executing
illegal instruction followed by the characters 'DIV0'. Recognize this
pattern in illegal instruction exception handler and convert it to
division by 0.

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