Skip to content

Commit

Permalink
[MIPS] lockdep: Handle interrupts in R3000 style c0_status register.
Browse files Browse the repository at this point in the history
Check the IEP bit for R3000 style processors when checking to see if
interrupts will be reenabled in restore_all.

Signed-off-by: Chris Dearman <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
chrisdearman authored and ralfbaechle committed Mar 29, 2007
1 parent eb541cb commit cbde5eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/mips/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ FEXPORT(restore_partial) # restore partial frame
SAVE_AT
SAVE_TEMP
LONG_L v0, PT_STATUS(sp)
and v0, 1
#if defined(CONFIG_CPU_R3000) || defined(CONFIG_CPU_TX39XX)
and v0, ST0_IEP
#else
and v0, ST0_IE
#endif
beqz v0, 1f
jal trace_hardirqs_on
b 2f
Expand Down

0 comments on commit cbde5eb

Please sign in to comment.