aboutsummaryrefslogtreecommitdiffstats
path: root/arch/hexagon/include
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-11-01 07:55:38 -0400
committerRichard Kuo <rkuo@codeaurora.org>2014-04-04 19:19:59 -0400
commitd811d8cc549fcb4b5f19f4daeb0d08b57aa15627 (patch)
treeab3281ef7896b06f35b9be47604da743632e9dce /arch/hexagon/include
parent3d298ca1a48fcaba616bf57d3c12a2b0f58a65dc (diff)
hexagon: include: asm: kgdb: extend DBG_MAX_REG_NUM for "cs0/1"
Need extend maximized number for "cs0/1", the related warning (with allmodconfig for v4): arch/hexagon/kernel/kgdb.c:79: warning: excess elements in array initializer arch/hexagon/kernel/kgdb.c:79: warning: (near initialization for 'dbg_reg_def') arch/hexagon/kernel/kgdb.c:80: warning: excess elements in array initializer arch/hexagon/kernel/kgdb.c:80: warning: (near initialization for 'dbg_reg_def') Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
Diffstat (limited to 'arch/hexagon/include')
-rw-r--r--arch/hexagon/include/asm/kgdb.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/hexagon/include/asm/kgdb.h b/arch/hexagon/include/asm/kgdb.h
index 32a6fb66944a..ccd3ac336b24 100644
--- a/arch/hexagon/include/asm/kgdb.h
+++ b/arch/hexagon/include/asm/kgdb.h
@@ -34,10 +34,11 @@ static inline void arch_kgdb_breakpoint(void)
34 * 32 gpr + sa0/1 + lc0/1 + m0/1 + gp + ugp + pred + pc = 42 total. 34 * 32 gpr + sa0/1 + lc0/1 + m0/1 + gp + ugp + pred + pc = 42 total.
35 * vm regs = psp+elr+est+badva = 4 35 * vm regs = psp+elr+est+badva = 4
36 * syscall+restart = 2 more 36 * syscall+restart = 2 more
37 * so 48 = 42 +4 + 2 37 * also add cs0/1 = 2
38 * so 48 = 42 + 4 + 2 + 2
38 */ 39 */
39#define DBG_USER_REGS 42 40#define DBG_USER_REGS 42
40#define DBG_MAX_REG_NUM (DBG_USER_REGS + 6) 41#define DBG_MAX_REG_NUM (DBG_USER_REGS + 8)
41#define NUMREGBYTES (DBG_MAX_REG_NUM*4) 42#define NUMREGBYTES (DBG_MAX_REG_NUM*4)
42 43
43#endif /* __HEXAGON_KGDB_H__ */ 44#endif /* __HEXAGON_KGDB_H__ */