1. 19 9月, 2009 1 次提交
    • C
      Clear the exclusive monitor when returning from an exception · 200b812d
      Catalin Marinas 提交于
      The patch adds a CLREX or dummy STREX to the exception return path. This
      is needed because several atomic/locking operations use a pair of
      LDREX/STREXEQ and the EQ condition may not always be satisfied. This
      would leave the exclusive monitor status set and may cause problems with
      atomic/locking operations in the interrupted code.
      
      With this patch, the atomic_set() operation can be a simple STR
      instruction (on SMP systems, the global exclusive monitor is cleared by
      STR anyway). Clearing the exclusive monitor during context switch is no
      longer needed as this is handled by the exception return path anyway.
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      Reported-by: NJamie Lokier <jamie@shareable.org>
      200b812d
  2. 18 9月, 2009 39 次提交