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>
Fri, 9 Nov 2012 11:47:06 +0000 (11:47 +0000)
commit0daa034e696ac601061cbf60fda41ad39678ae14
tree5513f12675dcf390351336abb3ce7148530f28ab
parent5ad29ea24e58777aa1daaa2255670ffb40aefd99
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