]> git.baikalelectronics.ru Git - kernel.git/commit
openrisc: entry: Fix delay slot detection
authorStafford Horne <shorne@gmail.com>
Tue, 10 Jan 2017 14:30:23 +0000 (23:30 +0900)
committerStafford Horne <shorne@gmail.com>
Fri, 24 Feb 2017 19:31:06 +0000 (04:31 +0900)
commit556b7454e5757114ea566021b48557c5080c4371
tree4da9f421a8463946624b1aee5df2b9ff1bf5cc2c
parent4a7f6d522ec002e3b96c36402780b916e55d08df
openrisc: entry: Fix delay slot detection

Use execption SR stored in pt_regs for detection, the current SR is not
correct as the handler is running after return from exception.

Also, The code that checks for a delay slot uses a flag bitmask and then
wants to check if the result is not zero.  The test it implemented was
wrong.

Correct it by changing the test to check result against non zero.

Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/kernel/entry.S