entry-macro.S 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* arch/arm/mach-msm7200/include/mach/entry-macro.S
  2. *
  3. * Copyright (C) 2007 Google, Inc.
  4. * Author: Brian Swetland <swetland@google.com>
  5. *
  6. * This software is licensed under the terms of the GNU General Public
  7. * License version 2, as published by the Free Software Foundation, and
  8. * may be copied, distributed, and modified under those terms.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. */
  16. #include <mach/msm_iomap.h>
  17. .macro disable_fiq
  18. .endm
  19. .macro get_irqnr_preamble, base, tmp
  20. @ enable imprecise aborts
  21. cpsie a
  22. mov \base, #MSM_VIC_BASE
  23. .endm
  24. .macro arch_ret_to_user, tmp1, tmp2
  25. .endm
  26. .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
  27. @ 0xD0 has irq# or old irq# if the irq has been handled
  28. @ 0xD4 has irq# or -1 if none pending *but* if you just
  29. @ read 0xD4 you never get the first irq for some reason
  30. ldr \irqnr, [\base, #0xD0]
  31. ldr \irqnr, [\base, #0xD4]
  32. cmp \irqnr, #0xffffffff
  33. .endm