diff options
author | Luca Dariz <luca@orpolo.org> | 2022-06-28 11:49:25 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-08-27 23:52:08 +0200 |
commit | d29057d0866a663d4a5a867147a4a6366c12a647 (patch) | |
tree | 32ce8276b2857d78edbada89d2d60eddea3a19dd /user.c | |
parent | 39e68c6ed7c9d6a2a73ab079846bc53c2839351f (diff) | |
download | mig-d29057d0866a663d4a5a867147a4a6366c12a647.tar.gz mig-d29057d0866a663d4a5a867147a4a6366c12a647.tar.bz2 mig-d29057d0866a663d4a5a867147a4a6366c12a647.zip |
fix message fields alignment for 64 bit
On x86_64 alignment of structures is different, as the pointer size is different.
For simplicity we keep the same 4-byte alignment as used on
32-bit. This simplifies the support for 32-bit rpc on 64-bit kernels,
and also it seems not worth as an optimization, as we would need to
add more code in the ipc_kmsg* routines.
* routine.c: align both short and long descriptors
* utils.c: use a fixed alignment for data fields in structures
representing messages.
Signed-off-by: Luca Dariz <luca@orpolo.org>
Message-Id: <20220628094927.442907-2-luca@orpolo.org>
Diffstat (limited to 'user.c')
0 files changed, 0 insertions, 0 deletions