hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/arm/kernel/debug.S
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * linux/arch/arm/kernel/debug.S
34 *
45 * 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.
96 *
107 * 32-bit debugging code
118 */
....@@ -86,17 +83,24 @@
8683 ENTRY(printascii)
8784 addruart_current r3, r1, r2
8885 1: teq r0, #0
89
- ldrneb r1, [r0], #1
86
+ ldrbne r1, [r0], #1
9087 teqne r1, #0
9188 reteq lr
9289 2: teq r1, #'\n'
9390 bne 3f
9491 mov r1, #'\r'
95
- waituart r2, r3
92
+#ifdef CONFIG_DEBUG_UART_FLOW_CONTROL
93
+ waituartcts r2, r3
94
+#endif
95
+ waituarttxrdy r2, r3
9696 senduart r1, r3
9797 busyuart r2, r3
9898 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
100104 senduart r1, r3
101105 busyuart r2, r3
102106 b 1b