Skip to contentSkip to conversation

ARM: move debug macros to common location

PATCH New Andrew Lunn 2 participants 2 messages Sep 1, 2012 – Sep 4, 2012

lore
Share & tools
lore
#0 lore raw

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
---
 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

#1 lore raw

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
---
 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.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?

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