Commit 0cb7a09a authored by Komal Shah's avatar Komal Shah Committed by Kevin Hilman

ARM: DaVinci: Minor cleanup for entry-macro.S

Signed-off-by: default avatarKomal Shah <komal_shah802003@yahoo.com>
parent 3679237c
...@@ -7,21 +7,21 @@ ...@@ -7,21 +7,21 @@
* License version 2. This program is licensed "as is" without any * License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied. * warranty of any kind, whether express or implied.
*/ */
#include <asm/hardware.h>
.macro disable_fiq .macro disable_fiq
.endm .endm
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
/* GIVEN: /* GIVEN:
* IRQ Entry Table Base Address * IRQ Entry Table Base Address
* RETURN: * RETURN:
* irqnr: Interrupt number. Zero corresponds * irqnr: Interrupt number. Zero corresponds
* to bit 0 of the status register * to bit 0 of the status register
* irqstat, base, and tmp may be considered * irqstat, base, and tmp may be considered
* as scratch registers * as scratch registers
* Z conditions means no outstanding interrupt * Z conditions means no outstanding interrupt
*/ */
ldr \base, =IO_ADDRESS(DAVINCI_ARM_INTC_BASE) ldr \base, =IO_ADDRESS(DAVINCI_ARM_INTC_BASE)
ldr \tmp, [\base, #0x14] ldr \tmp, [\base, #0x14]
ldr \irqstat, =DAVINCI_IRAM_VIRT ldr \irqstat, =DAVINCI_IRAM_VIRT
......
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