Changeset 66cee30 in rtems-libbsd


Ignore:
Timestamp:
Mar 29, 2019, 7:55:37 AM (8 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3f2b54d
Parents:
399be86
git-author:
Sebastian Huber <sebastian.huber@…> (03/29/19 07:55:37)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/29/19 08:04:54)
Message:

nfsclient: Fix for 64-bit targets

The use of the serporid structure with several embedded unions to split
up the specific NFS request/response structures is quite a hack. It
breaks on 64-bit targets due to the presence of pointer members which
affect the overall alignment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/nfsclient/nfs.c

    r399be86 r66cee30  
    402402#define SERP_FILE(node) ((node)->serporid.serporid_u.serporid.file)
    403403
     404/*
     405 * FIXME: The use of the serporid structure with several embedded unions to
     406 * split up the specific NFS request/response structures is quite a hack.  It
     407 * breaks on 64-bit targets due to the presence of pointer members which affect
     408 * the overall alignment.  Use a packed serporidok structure to hopefully fix
     409 * this issue.
     410 */
    404411
    405412typedef struct serporidok {
     
    448455                }                                       readdirarg;
    449456        }                                                       arg_u;
    450 } serporidok;
     457} RTEMS_PACKED serporidok;
    451458
    452459typedef struct serporid {
Note: See TracChangeset for help on using the changeset viewer.