ARM: move debug macros to common location
PATCH 1/3 ARM: move debug macros to common location
Quoted 5 lines
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
Hi Rob
What about arch/arm/include/asm/hardware/debug-8250.S and arch/arm/include/asm/hardware/debug-pl01x.S?
Might be nice to have these two also in arch/arm/include/debug/, or follow the naming convention set by these two and have arch/arm/include/asm/hardware/debug-icedcc.S?
Andrew
PATCH 1/3 ARM: move debug macros to common location
Quoted 14 lines · Andrew Lunn
Quoted 5 lines
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
Quoted 8 lines
Hi Rob
What about
arch/arm/include/asm/hardware/debug-8250.Sandarch/arm/include/asm/hardware/debug-pl01x.S?Might be nice to have these two also in
arch/arm/include/debug/, or follow the naming convention set by these two and havearch/arm/include/asm/hardware/debug-icedcc.S?
I agree we should move those, but would rather do it after moving all the debug-macro.S files into include/debug. As I mentioned in the multi-platform thread, I think there are further improvements we can do and eliminate many of the debug-macro.S files.
Rob