Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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 <damm@opensource.se>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 34bf0fc5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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