From c5bccf1a7a3c5eef4f89cb33c203249175cee58a Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Wed, 1 Jul 2009 19:48:14 +0000 Subject: [PATCH] Align syncv2 on 8 byte boundaries. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2335 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/syncv2.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/exec/syncv2.c b/exec/syncv2.c index af51ed8a..3cdf52df 100644 --- a/exec/syncv2.c +++ b/exec/syncv2.c @@ -98,20 +98,20 @@ struct processor_entry { }; struct req_exec_memb_determine_message { - coroipc_request_header_t header; - struct memb_ring_id ring_id; + coroipc_request_header_t header __attribute__((aligned(8))); + struct memb_ring_id ring_id __attribute__((aligned(8))); }; struct req_exec_service_build_message { - coroipc_request_header_t header; - struct memb_ring_id ring_id; - int service_list_entries; - int service_list[128]; + coroipc_request_header_t header __attribute__((aligned(8))); + struct memb_ring_id ring_id __attribute__((aligned(8))); + int service_list_entries __attribute__((aligned(8))); + int service_list[128] __attribute__((aligned(8))); }; struct req_exec_barrier_message { - coroipc_request_header_t header; - struct memb_ring_id ring_id; + coroipc_request_header_t header __attribute__((aligned(8))); + struct memb_ring_id ring_id __attribute__((aligned(8))); }; static enum sync_state my_state = SYNC_BARRIER;