Re: [PATCH v4 5/6] staging: android: binder: fix alignment issues

2013-05-31 Thread Arve Hjønnevåg
On Wed, May 22, 2013 at 3:13 AM, Serban Constantinescu wrote: > The Android userspace aligns the data written to the binder buffers to > 4bytes. Thus for 32bit platforms or 64bit platforms running an 32bit > Android userspace we can have a buffer looking like this: > > platformbuffer(binder_cm

[PATCH v4 5/6] staging: android: binder: fix alignment issues

2013-05-22 Thread Serban Constantinescu
The Android userspace aligns the data written to the binder buffers to 4bytes. Thus for 32bit platforms or 64bit platforms running an 32bit Android userspace we can have a buffer looking like this: platformbuffer(binder_cmd pointer) size 32/32 32b 32b 8B