patch-2.3.40 linux/arch/arm/kernel/debug-armv.S

Next file: linux/arch/arm/kernel/dec21285.c
Previous file: linux/arch/arm/kernel/calls.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.39/linux/arch/arm/kernel/debug-armv.S linux/arch/arm/kernel/debug-armv.S
@@ -134,17 +134,24 @@
 #elif defined(CONFIG_ARCH_SA1100)
 		.macro	addruart,rx
 		mov	\rx, #0xf8000000
-		add	\rx, \rx, #0x00050000
+		add	\rx, \rx, #0x00050000	@ Ser3
+		@add	\rx, \rx, #0x00010000	@ Ser1
 		.endm
 
 		.macro	senduart,rd,rx
-		str	\rd, [\rx, #0x14]	@ UARTDR
+		str	\rd, [\rx, #0x14]	@ UTDR
 		.endm
 
-		.macro	busyuart,rd,rx
+		.macro	waituart,rd,rx
 1001:		ldr	\rd, [\rx, #0x20]	@ UTSR1
-		tst	\rd, #1 << 2
+		tst	\rd, #1 << 2		@ UTSR1_TNF
 		beq	1001b
+		.endm
+
+		.macro	busyuart,rd,rx
+1001:		ldr	\rd, [\rx, #0x20]	@ UTSR1
+		tst	\rd, #1 << 0		@ UTSR1_TBY
+		bne	1001b
 		.endm
 
 #else

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)