commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Mach branch, master, updated. v1.8-601-g8e5e86fc


From: Samuel Thibault
Subject: [SCM] GNU Mach branch, master, updated. v1.8-601-g8e5e86fc
Date: Tue, 7 Mar 2023 18:44:14 -0500 (EST)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mach".

The branch, master has been updated
       via  8e5e86fc13732b60d2e4d14152d92db1f1ae73f9 (commit)
      from  e52779eb879ea8a14bb293e97c989f52eb439cbb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8e5e86fc13732b60d2e4d14152d92db1f1ae73f9
Author: Flavio Cruz <flaviocruz@gmail.com>
Date:   Tue Mar 7 02:01:13 2023 -0500

    Align mach_msg_type_t and mach_msg_type_long_t with the same alignment as 
uintptr_t.
    
    With this change, any 64 bit code using the IPC subsystem without relying on
    MiG will work without any changes. We have a few examples of this inside 
gnumach but
    also in the Hurd servers. For example, in hurd/console/display.c
    
      typedef struct
      {
        mach_msg_header_t Head;
        mach_msg_type_t ticknoType;
        natural_t tickno;
        mach_msg_type_t changeType;
        file_changed_type_t change;
        mach_msg_type_t startType;
        loff_t start;
        mach_msg_type_t endType;
        loff_t end;
      } Request;
    
    This will now work correctly in 64 bits, without requiring any explicit 
padding.
    
    As a follow up, we can simplify mach_msg_type_long_t so that we
    only need an 8 byte structure where the second field will include the
    number of elements for the long form. This is already included in
    mach_msg_type_t as unused_msgtl_number.
    Message-Id: <ZAbhOfOzsb8qPFs6@jupiter.tail36e24.ts.net>

-----------------------------------------------------------------------

Summary of changes:
 i386/i386/copy_user.h  |   4 +-
 include/mach/message.h |  14 ++--
 x86_64/copy_user.c     | 186 ++++++++++++++++++++++++++++++++++++++-----------
 3 files changed, 156 insertions(+), 48 deletions(-)


hooks/post-receive
-- 
GNU Mach



reply via email to

[Prev in Thread] Current Thread [Next in Thread]