| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/arch/arm/kernel/debug.S |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 1994-1999 Russell King |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | 6 | * |
|---|
| 10 | 7 | * 32-bit debugging code |
|---|
| 11 | 8 | */ |
|---|
| .. | .. |
|---|
| 86 | 83 | ENTRY(printascii) |
|---|
| 87 | 84 | addruart_current r3, r1, r2 |
|---|
| 88 | 85 | 1: teq r0, #0 |
|---|
| 89 | | - ldrneb r1, [r0], #1 |
|---|
| 86 | + ldrbne r1, [r0], #1 |
|---|
| 90 | 87 | teqne r1, #0 |
|---|
| 91 | 88 | reteq lr |
|---|
| 92 | 89 | 2: teq r1, #'\n' |
|---|
| 93 | 90 | bne 3f |
|---|
| 94 | 91 | mov r1, #'\r' |
|---|
| 95 | | - waituart r2, r3 |
|---|
| 92 | +#ifdef CONFIG_DEBUG_UART_FLOW_CONTROL |
|---|
| 93 | + waituartcts r2, r3 |
|---|
| 94 | +#endif |
|---|
| 95 | + waituarttxrdy r2, r3 |
|---|
| 96 | 96 | senduart r1, r3 |
|---|
| 97 | 97 | busyuart r2, r3 |
|---|
| 98 | 98 | mov r1, #'\n' |
|---|
| 99 | | -3: waituart r2, r3 |
|---|
| 99 | +3: |
|---|
| 100 | +#ifdef CONFIG_DEBUG_UART_FLOW_CONTROL |
|---|
| 101 | + waituartcts r2, r3 |
|---|
| 102 | +#endif |
|---|
| 103 | + waituarttxrdy r2, r3 |
|---|
| 100 | 104 | senduart r1, r3 |
|---|
| 101 | 105 | busyuart r2, r3 |
|---|
| 102 | 106 | b 1b |
|---|