debug-macro.S 589 B

123456789101112131415161718192021
  1. /*
  2. * Debugging macro include header
  3. *
  4. * Copyright 1994-1999 Russell King
  5. * Copyright 2008 Cavium Networks
  6. * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
  7. *
  8. * This file is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License, Version 2, as
  10. * published by the Free Software Foundation.
  11. */
  12. .macro addruart,rx
  13. mrc p15, 0, \rx, c1, c0
  14. tst \rx, #1 @ MMU enabled?
  15. moveq \rx, #0x10000000
  16. movne \rx, #0xf0000000 @ virtual base
  17. orr \rx, \rx, #0x00009000
  18. .endm
  19. #include <asm/hardware/debug-pl01x.S>