entry-macro.S 981 B

123456789101112131415161718192021222324252627282930313233
  1. /* arch/arm/mach-tegra/include/mach/entry-macro.S
  2. *
  3. * Copyright (C) 2009 Palm, Inc.
  4. *
  5. * This software is licensed under the terms of the GNU General Public
  6. * License version 2, as published by the Free Software Foundation, and
  7. * may be copied, distributed, and modified under those terms.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. */
  15. #include <mach/iomap.h>
  16. #include <mach/io.h>
  17. #define HAVE_GET_IRQNR_PREAMBLE
  18. #include <asm/hardware/entry-macro-gic.S>
  19. /* Uses the GIC interrupt controller built into the cpu */
  20. #define ICTRL_BASE (IO_CPU_VIRT + 0x100)
  21. .macro disable_fiq
  22. .endm
  23. .macro get_irqnr_preamble, base, tmp
  24. movw \base, #(ICTRL_BASE & 0x0000ffff)
  25. movt \base, #((ICTRL_BASE & 0xffff0000) >> 16)
  26. .endm
  27. .macro arch_ret_to_user, tmp1, tmp2
  28. .endm