Skip to content
Commit 812489ac authored by Stafford Horne's avatar Stafford Horne
Browse files

openrisc: Properly store r31 to pt_regs on unhandled exceptions



In commit 91993c8c ("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: 91993c8c ("openrisc: use shadow registers to save regs on exception")
Signed-off-by: default avatarStafford Horne <shorne@gmail.com>
parent 1aff44ab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment