1
1

Pad the sm btl header to double-word alignment. Preserves PML

header as double-word aligned and prevents bus errors on SPARC
based servers.  This is part of fix for #1148.

Refs trac:1148

This commit was SVN r17090.

The following Trac tickets were found above:
  Ticket 1148 --> https://svn.open-mpi.org/trac/ompi/ticket/1148
Этот коммит содержится в:
Rolf vandeVaart 2008-01-09 18:50:51 +00:00
родитель 25ce70bb92
Коммит 870fa8b1f1

Просмотреть файл

@ -9,6 +9,7 @@
* University of Stuttgart. All rights reserved. * University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California. * Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved. * All rights reserved.
* Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -41,6 +42,10 @@ struct mca_btl_sm_hdr_t {
struct mca_btl_sm_frag_t *frag; struct mca_btl_sm_frag_t *frag;
size_t len; size_t len;
mca_btl_base_tag_t tag; mca_btl_base_tag_t tag;
/* Add a 4 byte pad to round out structure to 16 bytes for 32-bit
* and to 24 bytes for 64-bit. Helps prevent bus errors for strict
* alignment cases like SPARC. */
char pad[4];
}; };
typedef struct mca_btl_sm_hdr_t mca_btl_sm_hdr_t; typedef struct mca_btl_sm_hdr_t mca_btl_sm_hdr_t;