Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 787ea1c5 authored by Eric Miao's avatar Eric Miao Committed by Jason Wessel
Browse files

arm,kgdb: fix GDB_MAX_REGS no longer used



According to commit 22eeef4b

    kgdb,arm: Individual register get/set for arm

It's now replaced by DBG_MAX_REG_NUM.

Signed-off-by: default avatarEric Miao <eric.y.miao@gmail.com>
Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
parent 8c8aefce
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -79,7 +79,7 @@ sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task)
		return;
		return;


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


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