Skip to contentSkip to conversation

pxa: sanitize IRQ registers access based on offset

PATCH New Eric Miao 1 participant 1 message May 5, 2010

Subsystems (3)
lore
Share & tools
lore

Eric Miao

author
#0 lore raw

PATCH 1/6 pxa: sanitize IRQ registers access based on offset

---
 arch/arm/mach-pxa/include/mach/regs-intc.h |    4 -
 arch/arm/mach-pxa/irq.c                    |  127 +++++++++++++++++++---------
 2 files changed, 85 insertions(+), 46 deletions(-)
(quoted diff) +0 -0

b/arch/arm/mach-pxa/include/mach/regs-intc.h
index 68464ce..662288e 100644

arch/arm/mach-pxa/include/mach/regs-intc.h +0 -0
@@ -27,8 +27,4 @@
 #define ICFP3		__REG(0x40D0013C)  /* Interrupt Controller FIQ Pending

Register 3 */
#define ICPR3 __REG(0x40D00140) /* Interrupt Controller Pending Register 3 */

-#define IPR(x) __REG(0x40D0001C + (x < 32 ? (x << 2) \
- : (x < 64 ? (0x94 + ((x - 32) << 2)) \
- : (0x128 + ((x - 64) << 2)))))
-
#endif /* __ASM_MACH_REGS_INTC_H */

arch/arm/mach-pxa/irq.c +85 -42

199 lines not on this page · raw message

Signature · 1 line
1.5.6.5