Skip to content

Commit

Permalink
ARM: 6326/1: kgdb: fix GDB_MAX_REGS no longer used
Browse files Browse the repository at this point in the history
According to commit 22eeef4

    kgdb,arm: Individual register get/set for arm

It's now replaced by DBG_MAX_REG_NUM.

Cc: Jason Wessel <[email protected]>
Signed-off-by: Eric Miao <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
ericmiao authored and Russell King committed Aug 14, 2010
1 parent 92fa5bd commit 2f17484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task)
return;

/* Initialize to zero */
for (regno = 0; regno < GDB_MAX_REGS; regno++)
for (regno = 0; regno < DBG_MAX_REG_NUM; regno++)
gdb_regs[regno] = 0;

/* Otherwise, we have only some registers from switch_to() */
Expand Down

0 comments on commit 2f17484

Please sign in to comment.