]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/debug: Simplify BRK insn opcode declarations
authorDave P Martin <Dave.Martin@arm.com>
Fri, 24 Jul 2015 15:37:46 +0000 (16:37 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 27 Jul 2015 10:08:42 +0000 (11:08 +0100)
commita4e6ea8580b6f6cf70f34c4a708bb6845e646efa
tree42bf6b70cefb2c2865d8a263b1155b438a72e6df
parent7f2b5925d5e9941b91c5109b1f43c57820e123fd
arm64/debug: Simplify BRK insn opcode declarations

The way the KGDB_DYN_BRK_INS_BYTEx macros are declared is more
complex than it needs to be.  Also, the macros are only used in one
place, which is arch-specific anyway.

This patch refactors the macros to simplify them, and exposes an
argument so that we can have a single macro instead of 4.

As a side effect, this patch also fixes some anomalous spellings of
"KGDB".

These changes alter the compile types of some integer constants
that are harmless but trigger truncation warnings in gcc when
assigning to 32-bit variables.  This patch adds an explicit cast
for the affected cases.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/debug-monitors.h
arch/arm64/kernel/kgdb.c