diff options
author | Dave P Martin <Dave.Martin@arm.com> | 2015-07-24 11:37:42 -0400 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-07-27 06:08:42 -0400 |
commit | dfac68314c969481fcce3dd528728dfa9d85caf5 (patch) | |
tree | c688b6bd22a6d36ee0074474828639c7f61f80c6 /arch/arm64/include/asm/debug-monitors.h | |
parent | 951757ae83ec611b1c4f1dcfda67246cf5157451 (diff) |
arm64/debug: Mask off all reserved bits from generated ESR values
There are only 16 comment bits in a BRK instruction, which
correspond to ESR bits 15:0. Bits 24:16 of the ESR are RES0,
and might have weird meanings in the future.
This code inserts 16 bits of comment in the ESR value instead of
20 (almost certainly a typo in the original code).
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/debug-monitors.h b/arch/arm64/include/asm/debug-monitors.h index f3d2dbd5f0a7..ab7d5a875f8d 100644 --- a/arch/arm64/include/asm/debug-monitors.h +++ b/arch/arm64/include/asm/debug-monitors.h | |||
@@ -45,7 +45,7 @@ | |||
45 | /* | 45 | /* |
46 | * ESR values expected for dynamic and compile time BRK instruction | 46 | * ESR values expected for dynamic and compile time BRK instruction |
47 | */ | 47 | */ |
48 | #define DBG_ESR_VAL_BRK(x) (0xf2000000 | ((x) & 0xfffff)) | 48 | #define DBG_ESR_VAL_BRK(x) (0xf2000000 | ((x) & 0xffff)) |
49 | 49 | ||
50 | /* | 50 | /* |
51 | * #imm16 values used for BRK instruction generation | 51 | * #imm16 values used for BRK instruction generation |