entry-macro.S 990 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * include/asm-arm/arch-pxa/entry-macro.S
  3. *
  4. * Low-level IRQ helper macros for PXA-based platforms
  5. *
  6. * This file is licensed under the terms of the GNU General Public
  7. * License version 2. This program is licensed "as is" without any
  8. * warranty of any kind, whether express or implied.
  9. */
  10. #include <asm/hardware.h>
  11. #include <asm/arch/irqs.h>
  12. .macro disable_fiq
  13. .endm
  14. .macro get_irqnr_preamble, base, tmp
  15. .endm
  16. .macro arch_ret_to_user, tmp1, tmp2
  17. .endm
  18. .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
  19. #ifdef CONFIG_PXA27x
  20. mrc p6, 0, \irqstat, c0, c0, 0 @ ICIP
  21. mrc p6, 0, \irqnr, c1, c0, 0 @ ICMR
  22. #else
  23. mov \base, #io_p2v(0x40000000) @ IIR Ctl = 0x40d00000
  24. add \base, \base, #0x00d00000
  25. ldr \irqstat, [\base, #0] @ ICIP
  26. ldr \irqnr, [\base, #4] @ ICMR
  27. #endif
  28. ands \irqnr, \irqstat, \irqnr
  29. beq 1001f
  30. rsb \irqstat, \irqnr, #0
  31. and \irqstat, \irqstat, \irqnr
  32. clz \irqnr, \irqstat
  33. rsb \irqnr, \irqnr, #(31 - PXA_IRQ_SKIP)
  34. 1001:
  35. .endm