ARM: move debug macros to common location
Subsystems (4)
PATCH 1/3 ARM: move debug macros to common location
From: Rob Herring <[email protected]>
Based on suggestion by Russell King, create a common location for debug macros and select the included debug macro file using config option.
--- arch/arm/Kconfig.debug | 5 +++ arch/arm/include/debug/icedcc.S | 90 +++++++++++++++++++++++++++++++++++++++ arch/arm/kernel/debug.S | 87 ++----------------------------------- arch/arm/kernel/head.S | 4 +- 4 files changed, 100 insertions(+), 86 deletions(-) create mode 100644 arch/arm/include/debug/icedcc.S
arch/arm/Kconfig.debug +5 -0
@@ -373,6 +373,11 @@ choice endchoice +config DEBUG_LL_INCLUDE + string + default "debug/icedcc.S" if DEBUG_ICEDCC + default "mach/debug-macros.S" + config EARLY_PRINTK bool "Early printk" depends on DEBUG_LL
arch/arm/include/debug/icedcc.S new file +90 -0
90 lines not on this page · raw message
arch/arm/kernel/debug.S +3 -84
93 lines not on this page · raw message
arch/arm/kernel/head.S +2 -2
@@ -23,8 +23,8 @@ #include <asm/thread_info.h> #include <asm/pgtable.h> -#ifdef CONFIG_DEBUG_LL -#include <mach/debug-macro.S> +#if defined(CONFIG_DEBUG_LL) && !defined(CONFIG_DEBUG_SEMIHOSTING) +#include CONFIG_DEBUG_LL_INCLUDE #endif /*
Signature · 1 line
1.7.9.5
PATCH 2/3 ARM: highbank: move debug macros to include/debug
From: Rob Herring <[email protected]>
Move highbank debug-macro.S over to common debug macro directory.
---
arch/arm/Kconfig.debug | 1 +
.../debug-macro.S => include/debug/highbank.S} | 0
2 files changed, 1 insertion(+)
rename arch/arm/{mach-highbank/include/mach/debug-macro.S => include/debug/highbank.S} (100%)arch/arm/Kconfig.debug +1 -0
@@ -376,6 +376,7 @@ endchoice config DEBUG_LL_INCLUDE string default "debug/icedcc.S" if DEBUG_ICEDCC + default "debug/highbank.S" if DEBUG_HIGHBANK_UART default "mach/debug-macros.S" config EARLY_PRINTK
arch/arm/include/debug/highbank.S renamed from arch/arm/mach-highbank/include/mach/debug-macro.S +0 -0
Signature · 1 line
1.7.9.5
PATCH 3/3 ARM: vexpress: move debug macros to include/debug
In reply to Rob HerringFrom: Rob Herring <[email protected]>
Move vexpress debug-macro.S over to common debug macro directory.
---
arch/arm/Kconfig.debug | 1 +
.../debug-macro.S => include/debug/vexpress.S} | 0
2 files changed, 1 insertion(+)
rename arch/arm/{mach-vexpress/include/mach/debug-macro.S => include/debug/vexpress.S} (100%)arch/arm/Kconfig.debug +1 -0
@@ -377,6 +377,7 @@ config DEBUG_LL_INCLUDE string default "debug/icedcc.S" if DEBUG_ICEDCC default "debug/highbank.S" if DEBUG_HIGHBANK_UART + default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT || DEBUG_VEXPRESS_UART0_CA9 || DEBUG_VEXPRESS_UART0_RS1 default "mach/debug-macros.S" config EARLY_PRINTK
arch/arm/include/debug/vexpress.S renamed from arch/arm/mach-vexpress/include/mach/debug-macro.S +0 -0
Signature · 1 line
1.7.9.5
PATCH 1/3 ARM: move debug macros to common location
In reply to Rob HerringQuoted 5 lines · Rob Herring
From: Rob Herring <[email protected]>
Based on suggestion by Russell King, create a common location for debug macros and select the included debug macro file using config option.
Quoted 8 lines
Signed-off-by Rob Herring <[email protected]>--- arch/arm/Kconfig.debug | 5 +++ arch/arm/include/debug/icedcc.S | 90 +++++++++++++++++++++++++++++++++++++++ arch/arm/kernel/debug.S | 87 ++----------------------------------- arch/arm/kernel/head.S | 4 +- 4 files changed, 100 insertions(+), 86 deletions(-) create mode 100644 arch/arm/include/debug/icedcc.S
I haven't followed that discussion, but it sure sounds like a good idea.
Any preference which tree to use for merging this?