entry-macro.S 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Low-level IRQ helper macros for Freescale STMP37XX
  3. *
  4. * Embedded Alley Solutions, Inc <source@embeddedalley.com>
  5. *
  6. * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved.
  7. * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
  8. */
  9. /*
  10. * The code contained herein is licensed under the GNU General Public
  11. * License. You may obtain a copy of the GNU General Public License
  12. * Version 2 or later at the following locations:
  13. *
  14. * http://www.opensource.org/licenses/gpl-license.html
  15. * http://www.gnu.org/copyleft/gpl.html
  16. */
  17. .macro disable_fiq
  18. .endm
  19. .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
  20. mov \base, #0xf0000000 @ vm address of IRQ controller
  21. ldr \irqnr, [\base, #0x30] @ HW_ICOLL_STAT
  22. cmp \irqnr, #0x3f
  23. movne \irqstat, #0 @ Ack this IRQ
  24. strne \irqstat, [\base, #0x00]@ HW_ICOLL_VECTOR
  25. moveqs \irqnr, #0 @ Zero flag set for no IRQ
  26. .endm
  27. .macro get_irqnr_preamble, base, tmp
  28. .endm
  29. .macro arch_ret_to_user, tmp1, tmp2
  30. .endm