bug-hurd
[Top][All Lists]
Advanced

[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: Samuel Thibault
Subject: Re: [RFC PATCH glibc 9/12] mach: Look for mach_i386.defs on x86_64 too
Date: Sun, 12 Feb 2023 16:46:23 +0100
User-agent: NeoMutt/20170609 (1.8.3)

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.

Samuel



reply via email to

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