Commit 62f60d6a authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt
Browse files

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: default avatarMagnus Damm <>
Signed-off-by: default avatarPaul Mundt <>
parent 34bf0fc5
......@@ -21,13 +21,13 @@
.macro get_irqnr_preamble, base, tmp
ldr \base, =INTFLGA
.macro arch_ret_to_user, tmp1, tmp2
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
ldr \base, =INTFLGA
ldr \irqnr, [\base]
cmp \irqnr, #0
beq 1000f
Markdown is supported
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