提交 62f60d6a 编写于 作者: M Magnus Damm 提交者: Paul Mundt

ARM: mach-shmobile: optimize get_irqnr_preamble/and_base macros

Optimize the SH-Mobile interrupt assembly macros to avoid
reloading the INTFLGA register address in case of multiple
pending interrupts. Kindly pointed out by Russell King.
Signed-off-by: NMagnus Damm <damm@opensource.se>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 34bf0fc5
......@@ -21,13 +21,13 @@
.endm
.macro get_irqnr_preamble, base, tmp
ldr \base, =INTFLGA
.endm
.macro arch_ret_to_user, tmp1, tmp2
.endm
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
ldr \base, =INTFLGA
ldr \irqnr, [\base]
cmp \irqnr, #0
beq 1000f
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册