hw: clrex during context switch (Fixes #1196)

This commit is contained in:
Stefan Kalkowski 2014-08-27 11:00:24 +02:00 committed by Christian Helmuth
parent eedddeced1
commit 0ffc89ee30
1 changed files with 7 additions and 0 deletions

View File

@ -369,6 +369,13 @@
add sp, sp, #PSR_OFFSET
stm sp, {r0, r1}
/*
* Clear exclusive access in local monitor,
* as we use strex/ldrex in our cmpxchg method, we've to do this during
* a context switch (ARM Reference Manual paragraph 3.4.4.)
*/
clrex
/*********************************************************
** Kernel-entry code that is common for all exceptions **
*********************************************************/