entry-macro.S 898 B

12345678910111213141516171819202122232425
  1. /*
  2. * include/asm-arm/arch-at91rm9200/entry-macro.S
  3. *
  4. * Copyright (C) 2003-2005 SAN People
  5. *
  6. * Low-level IRQ helper macros for AT91RM9200 platforms
  7. *
  8. * This file is licensed under the terms of the GNU General Public
  9. * License version 2. This program is licensed "as is" without any
  10. * warranty of any kind, whether express or implied.
  11. */
  12. #include <asm/hardware.h>
  13. .macro disable_fiq
  14. .endm
  15. .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
  16. ldr \base, =(AT91_VA_BASE_SYS) @ base virtual address of SYS peripherals
  17. ldr \irqnr, [\base, #AT91_AIC_IVR] @ read IRQ vector register: de-asserts nIRQ to processor (and clears interrupt)
  18. ldr \irqstat, [\base, #AT91_AIC_ISR] @ read interrupt source number
  19. teq \irqstat, #0 @ ISR is 0 when no current interrupt, or spurious interrupt
  20. streq \tmp, [\base, #AT91_AIC_EOICR] @ not going to be handled further, then ACK it now.
  21. .endm