linux-stable/arch/openrisc
Stafford Horne 8f009ae90b openrisc: Properly store r31 to pt_regs on unhandled exceptions
[ Upstream commit 812489ac4d ]

In commit 91993c8c2e ("openrisc: use shadow registers to save regs on
exception") the unhandled exception path was changed to do an early
store of r30 instead of r31.  The entry code was not updated and r31 is
not getting stored to pt_regs.

This patch updates the entry handler to store r31 instead of r30.  We
also remove some misleading commented out store r30 and r31
instructrions.

I noticed this while working on adding floating point exception
handling,  This issue probably would never impact anything since we kill
the process or Oops right away on unhandled exceptions.

Fixes: 91993c8c2e ("openrisc: use shadow registers to save regs on exception")
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-17 11:48:03 +02:00
..
boot/dts
configs
include openrisc: add support for TIF_NOTIFY_SIGNAL 2023-01-04 11:39:20 +01:00
kernel openrisc: Properly store r31 to pt_regs on unhandled exceptions 2023-05-17 11:48:03 +02:00
lib
mm openrisc: mm/init.c: remove unused memblock_region variable in map_ram() 2021-05-26 12:06:57 +02:00
Kconfig uaccess: add infrastructure for kernel builds with set_fs() 2020-09-08 22:21:32 -04:00
Kconfig.debug
Makefile