mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
sh: Fix bogus regs pointer in do_IRQ().
SH-3 and SH-4 were trampling the register, and SH-2 wasn't even setting it in the first place. This ended up with some rather broken behaviour in the sysrq show_regs(). Signed-off-by: Paul Mundt <[email protected]>
This commit is contained in:
parent
ffe1b4e9f4
commit
3afb209a43
4 changed files with 12 additions and 14 deletions
|
|
@ -94,8 +94,13 @@
|
|||
/*
|
||||
* Convert back and forth between INTEVT and IRQ values.
|
||||
*/
|
||||
#ifdef CONFIG_CPU_HAS_INTEVT
|
||||
#define evt2irq(evt) (((evt) >> 5) - 16)
|
||||
#define irq2evt(irq) (((irq) + 16) << 5)
|
||||
#else
|
||||
#define evt2irq(evt) (evt)
|
||||
#define irq2evt(irq) (irq)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Simple Mask Register Support
|
||||
|
|
|
|||
Loading…
Reference in a new issue