mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-27 05:32:27 +00:00
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: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
34bf0fc54a
commit
62f60d6a37
@ -21,13 +21,13 @@
|
|||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro get_irqnr_preamble, base, tmp
|
.macro get_irqnr_preamble, base, tmp
|
||||||
|
ldr \base, =INTFLGA
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro arch_ret_to_user, tmp1, tmp2
|
.macro arch_ret_to_user, tmp1, tmp2
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
|
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
|
||||||
ldr \base, =INTFLGA
|
|
||||||
ldr \irqnr, [\base]
|
ldr \irqnr, [\base]
|
||||||
cmp \irqnr, #0
|
cmp \irqnr, #0
|
||||||
beq 1000f
|
beq 1000f
|
||||||
|
Loading…
x
Reference in New Issue
Block a user