Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93873bcb authored by Dima Zavin's avatar Dima Zavin Committed by Daniel Walker
Browse files

[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: default avatarDima Zavin <dima@android.com>
Signed-off-by: default avatarDaniel Walker <dwalker@codeaurora.org>
parent b42dc44a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;