ARM: hw_breakpoint: use CRn as argument for debug reg accessor macros
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Wed, 26 Sep 2012 16:28:47 +0000 (17:28 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 9 Nov 2012 11:47:06 +0000 (11:47 +0000)
commit9e962f76602dbd293a57030f4ce5a4b57853e2ea
tree1aeb4316196f247d27ab0e7db933285fad1d12bc
parent0daa034e696ac601061cbf60fda41ad39678ae14
ARM: hw_breakpoint: use CRn as argument for debug reg accessor macros

The coprocessor register CRn for accesses to the debug register can be a
different one than C0. Take this into account for the ARM_DBG_READ and
the ARM_DBG_WRITE macro.

The inline assembler calls which used a coprocessor register CRn other
than C0 are replaced by the ARM_DBG_READ or ARM_DBG_WRITE macro.

Tested-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/hw_breakpoint.h
arch/arm/kernel/hw_breakpoint.c