]> git.karo-electronics.de Git - mv-sheeva.git/commit
ARM: hw_breakpoint: don't advertise reserved breakpoints
authorWill Deacon <will.deacon@arm.com>
Sun, 28 Nov 2010 15:09:36 +0000 (15:09 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 6 Dec 2010 11:55:56 +0000 (11:55 +0000)
commit0017ff42ac37ff6aeb87d0b006c5d32b9a39f5fc
treeee68bfe2ece2e7223e0802431a1cddd54157d4a2
parent7e20269647169e7ea08a62bdc4979a3ba32e615c
ARM: hw_breakpoint: don't advertise reserved breakpoints

To permit handling of watchpoint exceptions without signalling a
debugger, it is necessary to reserve breakpoint registers for in-kernel
use only.

This patch ensures that we record and subtract the number of reserved
breakpoints from the number of usable breakpoint registers that we
advertise to userspace via the ptrace API.

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