summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/debug-monitors.h
diff options
context:
space:
mode:
authorDave P Martin <Dave.Martin@arm.com>2015-07-24 16:37:44 +0100
committerWill Deacon <will.deacon@arm.com>2015-07-27 11:08:42 +0100
commitc172d994e1fd57e46e85424c23124756c66d4b62 (patch)
tree3ec387d50a1ecaf632c8dab8637cfbfdde94be3e /arch/arm64/include/asm/debug-monitors.h
parent03923696a966bd3eeb3a169d71b8a337aaa5ab76 (diff)
downloadtalos-obmc-linux-c172d994e1fd57e46e85424c23124756c66d4b62.tar.gz
talos-obmc-linux-c172d994e1fd57e46e85424c23124756c66d4b62.zip
arm64/debug: More consistent naming for the BRK ESR template macro
The naming of DBG_ESR_VAL_BRK is inconsistent with the way other similar macros are named. This patch makes the naming more consistent, and appends "64" as a reminder that this ESR pattern only matches from AArch64 state. Signed-off-by: Dave Martin <Dave.Martin@arm.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/debug-monitors.h')
-rw-r--r--arch/arm64/include/asm/debug-monitors.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm64/include/asm/debug-monitors.h b/arch/arm64/include/asm/debug-monitors.h
index ff09058587e3..bb97e9d88d23 100644
--- a/arch/arm64/include/asm/debug-monitors.h
+++ b/arch/arm64/include/asm/debug-monitors.h
@@ -46,8 +46,9 @@
/*
* ESR values expected for dynamic and compile time BRK instruction
*/
-#define DBG_ESR_VAL_BRK(x) \
- ((ESR_ELx_EC_BRK64 << ESR_ELx_EC_SHIFT) | ESR_ELx_IL | ((x) & 0xffff))
+#define ESR_ELx_VAL_BRK64(imm) \
+ ((ESR_ELx_EC_BRK64 << ESR_ELx_EC_SHIFT) | ESR_ELx_IL | \
+ ((imm) & 0xffff))
/*
* #imm16 values used for BRK instruction generation
OpenPOWER on IntegriCloud