Commit ce8ccaf0 authored by Troy Kisky's avatar Troy Kisky Committed by Kevin Hilman

davinci: interrupts: get_irqnr_and_base: save an instruction

Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent 17eb1570
...@@ -23,9 +23,8 @@ ...@@ -23,9 +23,8 @@
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
ldr \tmp, [\base, #0x14] ldr \tmp, [\base, #0x14]
mov \tmp, \tmp, lsr #2 movs \tmp, \tmp, lsr #2
sub \irqnr, \tmp, #1 sub \irqnr, \tmp, #1
cmp \tmp, #0
.endm .endm
.macro irq_prio_table .macro irq_prio_table
......
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