diff options
Diffstat (limited to 'arch/arm/kernel/debug.S')
-rw-r--r-- | arch/arm/kernel/debug.S | 87 |
1 files changed, 3 insertions, 84 deletions
diff --git a/arch/arm/kernel/debug.S b/arch/arm/kernel/debug.S index c45522c36787..66f711b2e0e8 100644 --- a/arch/arm/kernel/debug.S +++ b/arch/arm/kernel/debug.S | |||
@@ -20,90 +20,9 @@ | |||
20 | * references to these in a production kernel! | 20 | * references to these in a production kernel! |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #if defined(CONFIG_DEBUG_ICEDCC) | 23 | #if !defined(CONFIG_DEBUG_SEMIHOSTING) |
24 | @@ debug using ARM EmbeddedICE DCC channel | 24 | #include CONFIG_DEBUG_LL_INCLUDE |
25 | 25 | #endif | |
26 | .macro addruart, rp, rv, tmp | ||
27 | .endm | ||
28 | |||
29 | #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K) || defined(CONFIG_CPU_V7) | ||
30 | |||
31 | .macro senduart, rd, rx | ||
32 | mcr p14, 0, \rd, c0, c5, 0 | ||
33 | .endm | ||
34 | |||
35 | .macro busyuart, rd, rx | ||
36 | 1001: | ||
37 | mrc p14, 0, \rx, c0, c1, 0 | ||
38 | tst \rx, #0x20000000 | ||
39 | beq 1001b | ||
40 | .endm | ||
41 | |||
42 | .macro waituart, rd, rx | ||
43 | mov \rd, #0x2000000 | ||
44 | 1001: | ||
45 | subs \rd, \rd, #1 | ||
46 | bmi 1002f | ||
47 | mrc p14, 0, \rx, c0, c1, 0 | ||
48 | tst \rx, #0x20000000 | ||
49 | bne 1001b | ||
50 | 1002: | ||
51 | .endm | ||
52 | |||
53 | #elif defined(CONFIG_CPU_XSCALE) | ||
54 | |||
55 | .macro senduart, rd, rx | ||
56 | mcr p14, 0, \rd, c8, c0, 0 | ||
57 | .endm | ||
58 | |||
59 | .macro busyuart, rd, rx | ||
60 | 1001: | ||
61 | mrc p14, 0, \rx, c14, c0, 0 | ||
62 | tst \rx, #0x10000000 | ||
63 | beq 1001b | ||
64 | .endm | ||
65 | |||
66 | .macro waituart, rd, rx | ||
67 | mov \rd, #0x10000000 | ||
68 | 1001: | ||
69 | subs \rd, \rd, #1 | ||
70 | bmi 1002f | ||
71 | mrc p14, 0, \rx, c14, c0, 0 | ||
72 | tst \rx, #0x10000000 | ||
73 | bne 1001b | ||
74 | 1002: | ||
75 | .endm | ||
76 | |||
77 | #else | ||
78 | |||
79 | .macro senduart, rd, rx | ||
80 | mcr p14, 0, \rd, c1, c0, 0 | ||
81 | .endm | ||
82 | |||
83 | .macro busyuart, rd, rx | ||
84 | 1001: | ||
85 | mrc p14, 0, \rx, c0, c0, 0 | ||
86 | tst \rx, #2 | ||
87 | beq 1001b | ||
88 | |||
89 | .endm | ||
90 | |||
91 | .macro waituart, rd, rx | ||
92 | mov \rd, #0x2000000 | ||
93 | 1001: | ||
94 | subs \rd, \rd, #1 | ||
95 | bmi 1002f | ||
96 | mrc p14, 0, \rx, c0, c0, 0 | ||
97 | tst \rx, #2 | ||
98 | bne 1001b | ||
99 | 1002: | ||
100 | .endm | ||
101 | |||
102 | #endif /* CONFIG_CPU_V6 */ | ||
103 | |||
104 | #elif !defined(CONFIG_DEBUG_SEMIHOSTING) | ||
105 | #include <mach/debug-macro.S> | ||
106 | #endif /* CONFIG_DEBUG_ICEDCC */ | ||
107 | 26 | ||
108 | #ifdef CONFIG_MMU | 27 | #ifdef CONFIG_MMU |
109 | .macro addruart_current, rx, tmp1, tmp2 | 28 | .macro addruart_current, rx, tmp1, tmp2 |