ARM: hw_breakpoint: reserve one breakpoint for watchpoint stepping
authorWill Deacon <will.deacon@arm.com>
Tue, 2 Aug 2011 12:01:17 +0000 (13:01 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 31 Aug 2011 09:42:48 +0000 (10:42 +0100)
commitc512de955f0982aafa49d3f00d5643052a6790e5
tree5bf3d463211f174ccf724e82be07cdf800b3168d
parentb5d5b8f98641edac6641af9e19e933083ade603b
ARM: hw_breakpoint: reserve one breakpoint for watchpoint stepping

The current hw_breakpoint code on ARM reserves 1 breakpoint for each
watchpoint that is available. Since debug architectures prior to 7.1
are restricted to 1 watchpoint anyway, only one breakpoint was ever
reserved.

This patch changes the reservation strategy so that a single breakpoint
is reserved, regardless of the number of watchpoints. This is in
preparation for multiple-watchpoint support on debug architectures
from 7.1 onwards.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/hw_breakpoint.c