Skip to content

Commit

Permalink
[ARM] 2943/1: Clear the exclusive monitor in v6_early_abort
Browse files Browse the repository at this point in the history
Patch from Catalin Marinas

Data abort caused by ldrex/strex can leave the exclusive monitor in an
unpredictable state. It is recommended that a clrex/strex is performed to
clear this state.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Catalin Marinas authored and Russell King committed Oct 2, 2005
1 parent 487fd4e commit 2c3a054
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/arm/mm/abort-ev6.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
*/
.align 5
ENTRY(v6_early_abort)
#ifdef CONFIG_CPU_MPCORE
clrex
#else
strex r0, r1, [sp] @ Clear the exclusive monitor
#endif
mrc p15, 0, r1, c5, c0, 0 @ get FSR
mrc p15, 0, r0, c6, c0, 0 @ get FAR
/*
Expand Down

0 comments on commit 2c3a054

Please sign in to comment.