Explorar o código

Align syncv2 on 8 byte boundaries.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2335 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake %!s(int64=16) %!d(string=hai) anos
pai
achega
c5bccf1a7a
Modificáronse 1 ficheiros con 8 adicións e 8 borrados
  1. 8 8
      exec/syncv2.c

+ 8 - 8
exec/syncv2.c

@@ -98,20 +98,20 @@ struct processor_entry {
 };
 };
 
 
 struct req_exec_memb_determine_message {
 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 {
 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 {
 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;
 static enum sync_state my_state = SYNC_BARRIER;