]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: hw_breakpoint: check if monitor mode is enabled during validation
authorWill Deacon <will.deacon@arm.com>
Mon, 24 Sep 2012 17:01:13 +0000 (18:01 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 15 Oct 2012 11:01:09 +0000 (12:01 +0100)
commitafea5edb7b534b4ad1541a35f7efec081ba6a03f
tree7e5998fff4290b04ac3c009c0e0f2aebb005ac4e
parent79f7a61f363739c82abb7e1a4e02a0e10ae33e8e
ARM: hw_breakpoint: check if monitor mode is enabled during validation

Rather than attempt to enable monitor mode explicitly when scheduling in
a breakpoint event (which could raise an undefined exception trap when
accessing DBGDSCRext), instead check that DBGDSCRint.MDBGen is set
during event validation and report an error to the caller if not.

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