OSDN Git Service

Binder: Make binder portable
authorSerban Constantinescu <serban.constantinescu@arm.com>
Tue, 5 Nov 2013 16:53:55 +0000 (16:53 +0000)
committerDavid Butcher <david.butcher@arm.com>
Fri, 31 Jan 2014 10:49:40 +0000 (10:49 +0000)
commitf683e0163a84d93448b9388126902242367cd961
tree9b1107fef6b054470d3edef320d22ecd36461568
parent3a345f0df5f62d77e875a289e9aee89f0d1b526e
Binder: Make binder portable

Changes include
- Binder attempts to cast pointers to a int datatype
  which is not sufficient on a 64-bit platform.

- This patch introduces new read/write functions into
  Parcel that allow pointers to be written using the
  uintptr_t datatype for compile-time data type size
  selection.

-  Change access specifier for the methods above.

-  Binder uses the 64bit android_atomic_release_cas64
   (aka cmpxchg)

Change-Id: I595280541e0ba1d19c94b2ca2127bf9d96efabf1
Signed-off-by: Matthew Leach <matthew.leach@arm.com>
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
include/binder/Parcel.h
libs/binder/Binder.cpp
libs/binder/IPCThreadState.cpp
libs/binder/MemoryDealer.cpp
libs/binder/Parcel.cpp