2 * linux/include/asm-arm/arch-ks8695/debug-macro.S
4 * Debugging macro include header
6 * Copyright (C) 1994-1999 Russell King
7 * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
8 * (C) Copyright 2006 Greg Ungerer <gerg@snapgear.com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
16 mrc p15, 0, \rx, c1, c0
17 tst \rx, #1 @ MMU enabled?
18 moveq \rx, #0x03000000 @ 0x03ffe000
19 orreq \rx, \rx, #0x00ff0000
20 movne \rx, #0xff000000 @ 0xff00e000
21 orr \rx, \rx, #0x0000e000
29 1: ldr \rd, [\rx, #0x14]
30 and \rd, \rd, #0x40 @ check TEMT bit