diff options
author | Dima Zavin <dima@android.com> | 2010-01-08 21:30:03 -0500 |
---|---|---|
committer | Daniel Walker <dwalker@codeaurora.org> | 2010-05-12 12:15:37 -0400 |
commit | 93873bcbd16f7233dd5a20280af8e5394e702a8b (patch) | |
tree | 9e5e84bcd0cf1f123adffc1cf8a74fa10a70ea65 /arch/arm | |
parent | b42dc44afca902d19f86d541cbb665f31b9149a0 (diff) |
[ARM] msm: smd: Force the half_channel struct aligmnent to 4
Forcing the alignment prevents gcc from generating byte reads for word
member variables. Lack of this caused issues when the app processor
modified struct members and the modem saw a partial word write.
Signed-off-by: Dima Zavin <dima@android.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-msm/smd_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-msm/smd_private.h b/arch/arm/mach-msm/smd_private.h index 5a8831cc41ee..2da758e65025 100644 --- a/arch/arm/mach-msm/smd_private.h +++ b/arch/arm/mach-msm/smd_private.h | |||
@@ -269,7 +269,7 @@ struct smd_half_channel { | |||
269 | unsigned char fUNUSED; | 269 | unsigned char fUNUSED; |
270 | unsigned tail; | 270 | unsigned tail; |
271 | unsigned head; | 271 | unsigned head; |
272 | } __attribute__((packed)); | 272 | } __attribute__(( aligned(4), packed )); |
273 | 273 | ||
274 | struct smd_shared_v1 { | 274 | struct smd_shared_v1 { |
275 | struct smd_half_channel ch0; | 275 | struct smd_half_channel ch0; |