Commit d811d8cc authored by Chen Gang's avatar Chen Gang Committed by Richard Kuo

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: default avatarChen Gang <gang.chen@asianux.com>
Signed-off-by: default avatarRichard Kuo <rkuo@codeaurora.org>
parent 3d298ca1
...@@ -34,10 +34,11 @@ static inline void arch_kgdb_breakpoint(void) ...@@ -34,10 +34,11 @@ static inline void arch_kgdb_breakpoint(void)
* 32 gpr + sa0/1 + lc0/1 + m0/1 + gp + ugp + pred + pc = 42 total. * 32 gpr + sa0/1 + lc0/1 + m0/1 + gp + ugp + pred + pc = 42 total.
* vm regs = psp+elr+est+badva = 4 * vm regs = psp+elr+est+badva = 4
* syscall+restart = 2 more * syscall+restart = 2 more
* so 48 = 42 +4 + 2 * also add cs0/1 = 2
* so 48 = 42 + 4 + 2 + 2
*/ */
#define DBG_USER_REGS 42 #define DBG_USER_REGS 42
#define DBG_MAX_REG_NUM (DBG_USER_REGS + 6) #define DBG_MAX_REG_NUM (DBG_USER_REGS + 8)
#define NUMREGBYTES (DBG_MAX_REG_NUM*4) #define NUMREGBYTES (DBG_MAX_REG_NUM*4)
#endif /* __HEXAGON_KGDB_H__ */ #endif /* __HEXAGON_KGDB_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment