Skip to content

Commit 1ea6461

Browse files
Jeremy Kerrnpitre
authored andcommitted
arm/debug: consolidate addruart macros for CONFIG_DEBUG_ICEDCC
We have the same (empty) macro for all IDEDCC flavours, so consolidate it to one. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
1 parent d71e3eb commit 1ea6461

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

‎arch/arm/kernel/debug.S‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
#if defined(CONFIG_DEBUG_ICEDCC)
2323
@@ debug using ARM EmbeddedICE DCC channel
2424

25-
#if defined(CONFIG_CPU_V6)
26-
2725
.macro addruart, rx, tmp
2826
.endm
2927

28+
#if defined(CONFIG_CPU_V6)
29+
3030
.macro senduart, rd, rx
3131
mcr p14, 0, \rd, c0, c5, 0
3232
.endm
@@ -51,9 +51,6 @@
5151

5252
#elif defined(CONFIG_CPU_V7)
5353

54-
.macro addruart, rx, tmp
55-
.endm
56-
5754
.macro senduart, rd, rx
5855
mcr p14, 0, \rd, c0, c5, 0
5956
.endm
@@ -71,9 +68,6 @@ wait: mrc p14, 0, pc, c0, c1, 0
7168

7269
#elif defined(CONFIG_CPU_XSCALE)
7370

74-
.macro addruart, rx, tmp
75-
.endm
76-
7771
.macro senduart, rd, rx
7872
mcr p14, 0, \rd, c8, c0, 0
7973
.endm
@@ -98,9 +92,6 @@ wait: mrc p14, 0, pc, c0, c1, 0
9892

9993
#else
10094

101-
.macro addruart, rx, tmp
102-
.endm
103-
10495
.macro senduart, rd, rx
10596
mcr p14, 0, \rd, c1, c0, 0
10697
.endm

0 commit comments

Comments
 (0)