Commit b59a9504 authored by Thiemo Seufer's avatar Thiemo Seufer Committed by Ralf Baechle
Browse files

De-optimize and decomplicate the spurious interrupt handler.

Signed-off-by: default avatarThiemo Seufer <>
Signed-off-by: default avatarRalf Baechle <>
parent 942b6f62
......@@ -128,28 +128,25 @@ FEXPORT(syscall_exit_work)
* Common spurious interrupt handler.
.align 5
* Someone tried to fool us by sending an interrupt but we
* couldn't find a cause for it.
PTR_LA t1, irq_err_count
lui t1, %hi(irq_err_count)
1: ll t0, %lo(irq_err_count)(t1)
1: ll t0, (t1)
addiu t0, 1
sc t0, %lo(irq_err_count)(t1)
sc t0, (t1)
#if R10000_LLSC_WAR
beqzl t0, 1b
beqz t0, 1b
lui t1, %hi(irq_err_count)
lw t0, %lo(irq_err_count)(t1)
lw t0, (t1)
addiu t0, 1
sw t0, %lo(irq_err_count)(t1)
sw t0, (t1)
j ret_from_irq
Supports Markdown
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