提交 93873bcb 编写于 作者: D Dima Zavin 提交者: Daniel Walker

[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: NDima Zavin <dima@android.com>
Signed-off-by: NDaniel Walker <dwalker@codeaurora.org>
上级 b42dc44a
......@@ -269,7 +269,7 @@ struct smd_half_channel {
unsigned char fUNUSED;
unsigned tail;
unsigned head;
} __attribute__((packed));
} __attribute__(( aligned(4), packed ));
struct smd_shared_v1 {
struct smd_half_channel ch0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册