Skip to content

Commit 6428ea2

Browse files
Linus WalleijRussell King
authored andcommitted
ARM: 9003/1: uncompress: Delete unused debug macros
The debug macros debug_reloc_start and debug_reloc_end were rendered unused in commit 6d7d0ae "ARM: 6750/1: improvements to compressed/head.S". Later on a different debug macro named dbgkc was introduced in commit f3c8999 "ARM: 8786/1: Debug kernel copy by printing". Delete the dead debug code. Cc: Nicolas Pitre <nico@fluxnic.net> Cc: Fabrizio Castro <fabrizio.castro@bp.renesas.com> Cc: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
1 parent 22c9e58 commit 6428ea2

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

  • arch/arm/boot/compressed

‎arch/arm/boot/compressed/head.S‎

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -81,36 +81,6 @@
8181
bl phex
8282
.endm
8383

84-
.macro debug_reloc_start
85-
#ifdef DEBUG
86-
kputc #'\n'
87-
kphex r6, 8 /* processor id */
88-
kputc #':'
89-
kphex r7, 8 /* architecture id */
90-
#ifdef CONFIG_CPU_CP15
91-
kputc #':'
92-
mrc p15, 0, r0, c1, c0
93-
kphex r0, 8 /* control reg */
94-
#endif
95-
kputc #'\n'
96-
kphex r5, 8 /* decompressed kernel start */
97-
kputc #'-'
98-
kphex r9, 8 /* decompressed kernel end */
99-
kputc #'>'
100-
kphex r4, 8 /* kernel execution address */
101-
kputc #'\n'
102-
#endif
103-
.endm
104-
105-
.macro debug_reloc_end
106-
#ifdef DEBUG
107-
kphex r5, 8 /* end of kernel */
108-
kputc #'\n'
109-
mov r0, r4
110-
bl memdump /* dump 256 bytes at start of kernel */
111-
#endif
112-
.endm
113-
11484
/*
11585
* Debug kernel copy by printing the memory addresses involved
11686
*/

0 commit comments

Comments
 (0)