[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH glibc 9/12] mach: Look for mach_i386.defs on x86_64 too
From: |
Sergey Bugaev |
Subject: |
Re: [RFC PATCH glibc 9/12] mach: Look for mach_i386.defs on x86_64 too |
Date: |
Sun, 12 Feb 2023 19:01:13 +0300 |
On Sun, Feb 12, 2023 at 6:46 PM Samuel Thibault <samuel.thibault@gnu.org> wrote:
>
> Sergey Bugaev, le dim. 12 févr. 2023 18:38:03 +0300, a ecrit:
> > Since mach/machine/syscall_sw.h is the i386 version on x86_64 (or --
> > is it not supposed to be?)
>
> Nobody yet decided that the system call interface would be the same on
> i386 and on x86_64 :)
>
> Most probably we'll need a different header, to put the trap number of
> rax instead of eax, notably. And the systemcall instruction will most
> probably not be an lcall.
>
> > the _MACH_I386_SYSCALL_SW_H_ guard is the one to fake, hence setting
> > mach-machine to i386.
>
> This can be already fixed by shipping a different file in mach, as we'll
> most probably want in the end anyway.
I've kind of assumed that the x86_64 Mach using / installing the i386
headers is intentional, and if some things (like the actual syscall
ABI) are to be different, they'd both be defined in the same file,
predicated on an ifdef. This is what XNU does for sure, see
osfmk/mach/i386/syscall_sw.h
Sergey
- Re: [RFC PATCH hurd 6/12] hurd: Fix modes_t and speeds_t types on 64-bit, (continued)
- Re: [RFC PATCH hurd 6/12] hurd: Fix modes_t and speeds_t types on 64-bit, Samuel Thibault, 2023/02/12
- Re: [RFC PATCH hurd 6/12] hurd: Fix modes_t and speeds_t types on 64-bit, Sergey Bugaev, 2023/02/12
- Re: [RFC PATCH hurd 6/12] hurd: Fix modes_t and speeds_t types on 64-bit, Samuel Thibault, 2023/02/12
- Re: [RFC PATCH hurd 6/12] hurd: Fix modes_t and speeds_t types on 64-bit, Sergey Bugaev, 2023/02/12
- Re: [RFC PATCH hurd 6/12] hurd: Fix modes_t and speeds_t types on 64-bit, Samuel Thibault, 2023/02/12
- Re: [RFC PATCH hurd 6/12] hurd: Fix modes_t and speeds_t types on 64-bit, Samuel Thibault, 2023/02/12
[RFC PATCH glibc 9/12] mach: Look for mach_i386.defs on x86_64 too, Sergey Bugaev, 2023/02/12
Re: [RFC PATCH glibc 9/12] mach: Look for mach_i386.defs on x86_64 too, Joseph Myers, 2023/02/16
[RFC PATCH glibc 4/12] hurd: Fix xattr error value, Sergey Bugaev, 2023/02/12
[RFC PATCH mig 8/12] Set max type alignment to sizeof(long), Sergey Bugaev, 2023/02/12
[RFC PATCH glibc 10/12] hurd: Set up the basic tree for x86_64-gnu, Sergey Bugaev, 2023/02/12
[RFC PATCH glibc 12/12] C11 thrd: Downgrade the default alignment of mtx_t, Sergey Bugaev, 2023/02/12