]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 15 Oct 2012 11:01:09 +0000 (12:01 +0100)
commite51ad148df513119cc0e4d9d3ddeabaf93a16842
tree8d023158ef8ac13ad69c0da3c430cf36e4ce5a58
parentafea5edb7b534b4ad1541a35f7efec081ba6a03f
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.

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