1. 23 Jun, 2010 1 commit
    • Carl Shapiro's avatar
      Define inline atomic operations for x86 and ARM. · 93b0cb40
      Carl Shapiro authored
      This change moves the ARM definitions into GCC extended inline
      assembler.  In addition, the same set of x86 definitions are now
      shared among all x86 targets.
      
      Change-Id: I6e5aa3a413d0af2acbe5d32994983d35a01fdcb3
      93b0cb40
  2. 27 May, 2010 1 commit
    • Andy McFadden's avatar
      Atomic/SMP update, part 2. · 8dfa47da
      Andy McFadden authored
      Added new atomic functions, renamed some old ones.  Some #defines have
      been added for backward compatibility.
      
      Merged the pre- and post-ARMv6 implementations into a single file.
      
      Renamed the semi-private __android_membar_full_smp to USE_SCREAMING_CAPS
      since that's more appropriate for a macro.
      
      Added lots of comments.
      
      Note Mac OS X primitives have not been tested.
      
      Change-Id: If827260750aeb61ad5c2b760e30658e29dbb26f2
      8dfa47da
  3. 21 May, 2010 2 commits
    • Andy McFadden's avatar
      Atomic/SMP update. [manual merge to dalvik-dev] · 62af8f25
      Andy McFadden authored
      Added atomic-inline.h.  Added a platform-specific memory barrier call
      there.
      
      Added android_atomic_acquire_cmpxchg() and android_atomic_release_store().
      Not tested on Mac OS X or SH.
      
      Added memory barrier calls to linux-x86 atomics.  Mac OS X has barrier
      functions already.  sh isn't really SMP-ready.  linux-arm needs work
      (to be done in a separate change).
      
      Updated the makefile to make the SMP state visible to the code here.
      Note that host binaries are NOT built with SMP enabled; while our hosts
      are very likely SMP, it's not worth figuring out e.g. whether it's okay
      to use the SSE2 mfence instruction or have to use something else.  We
      haven't had barriers enabled in host tools before, so there's probably
      no need to stat now.
      
      Removed quasiatomic 64-bit calls (now part of Dalvik).
      
      Change-Id: I42ae05f5db2cc9a5b64ad87f15481e2838371f1d
      62af8f25
    • Andy McFadden's avatar
      Atomic/SMP update. · ac322da6
      Andy McFadden authored
      Added atomic-inline.h.  Added a platform-specific memory barrier call
      there.
      
      Added android_atomic_acquire_cmpxchg() and android_atomic_release_store().
      Not tested on Mac OS X or SH.
      
      Added memory barrier calls to linux-x86 atomics.  Mac OS X has barrier
      functions already.  sh isn't really SMP-ready.  linux-arm needs work
      (to be done in a separate change).
      
      Updated the makefile to make the SMP state visible to the code here.
      Note that host binaries are NOT built with SMP enabled; while our hosts
      are very likely SMP, it's not worth figuring out e.g. whether it's okay
      to use the SSE2 mfence instruction or have to use something else.  We
      haven't had barriers enabled in host tools before, so there's probably
      no need to stat now.
      
      Removed quasiatomic 64-bit calls (now part of Dalvik).
      
      Change-Id: I49e5e6c8abe70f304cdedb9d7b8e6e65f8925815
      ac322da6
  4. 04 Aug, 2009 1 commit
  5. 04 Mar, 2009 2 commits
  6. 21 Oct, 2008 1 commit