summaryrefslogtreecommitdiff
path: root/arch/arm/kernel/kgdb.c
diff options
context:
space:
mode:
authoreric miao <eric.y.miao@gmail.com>2010-08-12 19:43:00 +0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-08-14 12:28:35 +0400
commit2f174847b0fdd4eb9f482030a284db24aef7a97f (patch)
tree230ec36c5dc4865bcbbae4a7f0195e8794e3a773 /arch/arm/kernel/kgdb.c
parent92fa5bd9a946b6e7aab6764e7312e4e3d9bed295 (diff)
downloadlinux-2f174847b0fdd4eb9f482030a284db24aef7a97f.tar.xz
ARM: 6326/1: kgdb: fix GDB_MAX_REGS no longer used
According to commit 22eeef4bb2a7fd225089c0044060ed1fbf091958 kgdb,arm: Individual register get/set for arm It's now replaced by DBG_MAX_REG_NUM. Cc: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/kgdb.c')
-rw-r--r--arch/arm/kernel/kgdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/kgdb.c b/arch/arm/kernel/kgdb.c
index 778c2f7024ff..d6e8b4d2e60d 100644
--- a/arch/arm/kernel/kgdb.c
+++ b/arch/arm/kernel/kgdb.c
@@ -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() */