arm64: Add macros to manage processor debug state
authorVijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Tue, 28 Jan 2014 11:20:17 +0000 (11:20 +0000)
committerMark Brown <broonie@linaro.org>
Wed, 21 May 2014 15:01:06 +0000 (16:01 +0100)
commit92d246de32b84126e1a2974458608eeeec41e214
tree7763c0938a65e5ce4977f491c797e144d6d8cf0f
parenta6e15359d5c2aa6dd7f1eb0830a341c15e7c55b3
arm64: Add macros to manage processor debug state

Add macros to enable and disable to manage PSTATE.D
for debugging. The macros local_dbg_save and local_dbg_restore
are moved to irqflags.h file

KGDB boot tests fail because of PSTATE.D is masked.
unmask it for debugging support

Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit c7db4ff5d2b459a579d348532a92fd5885520ce6)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/include/asm/debug-monitors.h
arch/arm64/include/asm/irqflags.h
arch/arm64/kernel/debug-monitors.c