entry-macro.S 745 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * linux/arch/arm/mach-mmp/include/mach/entry-macro.S
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #include <mach/regs-icu.h>
  9. .macro disable_fiq
  10. .endm
  11. .macro arch_ret_to_user, tmp1, tmp2
  12. .endm
  13. .macro get_irqnr_preamble, base, tmp
  14. mrc p15, 0, \tmp, c0, c0, 0 @ CPUID
  15. and \tmp, \tmp, #0xff00
  16. cmp \tmp, #0x5800
  17. ldr \base, =ICU_VIRT_BASE
  18. addne \base, \base, #0x10c @ PJ1 AP INT SEL register
  19. addeq \base, \base, #0x104 @ PJ4 IRQ SEL register
  20. .endm
  21. .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
  22. ldr \tmp, [\base, #0]
  23. and \irqnr, \tmp, #0x3f
  24. tst \tmp, #(1 << 6)
  25. .endm