diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2013-09-03 14:13:31 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2013-09-03 14:13:31 -0400 |
commit | 309272f99f3e65b9bb5c49a2901c63a1859172f3 (patch) | |
tree | 42d8853ba14b14d562e654c8be0a5ebc0ab1d344 | |
parent | a718e10cbaa28035b7ab510d68fef68524454e1a (diff) |
tile: clean up relocate_kernel_64 debug code
We remove some debug code in relocate_kernel_64.S that made raw
calls to the hv_console_putc Tilera hypervisor API, since everything
should funnel through the early_hv_write() API.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
-rw-r--r-- | arch/tile/kernel/relocate_kernel_64.S | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/tile/kernel/relocate_kernel_64.S b/arch/tile/kernel/relocate_kernel_64.S index 1c09a4f5a4ea..02bc44621021 100644 --- a/arch/tile/kernel/relocate_kernel_64.S +++ b/arch/tile/kernel/relocate_kernel_64.S | |||
@@ -34,11 +34,11 @@ STD_ENTRY(relocate_new_kernel) | |||
34 | addi sp, sp, -8 | 34 | addi sp, sp, -8 |
35 | /* we now have a stack (whether we need one or not) */ | 35 | /* we now have a stack (whether we need one or not) */ |
36 | 36 | ||
37 | #ifdef RELOCATE_NEW_KERNEL_VERBOSE | ||
37 | moveli r40, hw2_last(hv_console_putc) | 38 | moveli r40, hw2_last(hv_console_putc) |
38 | shl16insli r40, r40, hw1(hv_console_putc) | 39 | shl16insli r40, r40, hw1(hv_console_putc) |
39 | shl16insli r40, r40, hw0(hv_console_putc) | 40 | shl16insli r40, r40, hw0(hv_console_putc) |
40 | 41 | ||
41 | #ifdef RELOCATE_NEW_KERNEL_VERBOSE | ||
42 | moveli r0, 'r' | 42 | moveli r0, 'r' |
43 | jalr r40 | 43 | jalr r40 |
44 | 44 | ||
@@ -176,10 +176,12 @@ STD_ENTRY(relocate_new_kernel) | |||
176 | 176 | ||
177 | /* we should not get here */ | 177 | /* we should not get here */ |
178 | 178 | ||
179 | #ifdef RELOCATE_NEW_KERNEL_VERBOSE | ||
179 | moveli r0, '?' | 180 | moveli r0, '?' |
180 | jalr r40 | 181 | jalr r40 |
181 | moveli r0, '\n' | 182 | moveli r0, '\n' |
182 | jalr r40 | 183 | jalr r40 |
184 | #endif | ||
183 | 185 | ||
184 | j .Lhalt | 186 | j .Lhalt |
185 | 187 | ||
@@ -237,7 +239,9 @@ STD_ENTRY(relocate_new_kernel) | |||
237 | j .Lloop | 239 | j .Lloop |
238 | 240 | ||
239 | 241 | ||
240 | .Lerr: moveli r0, 'e' | 242 | .Lerr: |
243 | #ifdef RELOCATE_NEW_KERNEL_VERBOSE | ||
244 | moveli r0, 'e' | ||
241 | jalr r40 | 245 | jalr r40 |
242 | moveli r0, 'r' | 246 | moveli r0, 'r' |
243 | jalr r40 | 247 | jalr r40 |
@@ -245,6 +249,7 @@ STD_ENTRY(relocate_new_kernel) | |||
245 | jalr r40 | 249 | jalr r40 |
246 | moveli r0, '\n' | 250 | moveli r0, '\n' |
247 | jalr r40 | 251 | jalr r40 |
252 | #endif | ||
248 | .Lhalt: | 253 | .Lhalt: |
249 | moveli r41, hw2_last(hv_halt) | 254 | moveli r41, hw2_last(hv_halt) |
250 | shl16insli r41, r41, hw1(hv_halt) | 255 | shl16insli r41, r41, hw1(hv_halt) |