This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fifth draft of the Y2038 design document
- From: Chris Metcalf <cmetcalf at mellanox dot com>
- To: Joseph Myers <joseph at codesourcery dot com>, Albert ARIBAUD <albert dot aribaud at 3adev dot fr>
- Cc: Arnd Bergmann <arnd at arndb dot de>, GNU C Library <libc-alpha at sourceware dot org>, <y2038 at lists dot linaro dot org>, Deepa Dinamani <deepa dot kernel at gmail dot com>
- Date: Wed, 8 Mar 2017 13:07:23 -0500
- Subject: Re: Fifth draft of the Y2038 design document
- Authentication-results: sourceware.org; auth=none
- Authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=mellanox.com;
- References: <20170222090511.48be22ed.albert.aribaud@3adev.fr> <CAK8P3a2-vsreq0WFiTS-WizSvmci_C5f4pMAiYF7-OhjzQZiNg@mail.gmail.com> <20170222193333.55c722ab.albert.aribaud@3adev.fr> <alpine.DEB.2.20.1702222054250.24643@digraph.polyomino.org.uk> <20170222220436.4fe1c50f.albert.aribaud@3adev.fr> <alpine.DEB.2.20.1702222106470.24643@digraph.polyomino.org.uk>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
On 2/22/2017 4:16 PM, Joseph Myers wrote:
That said, I think the following ABIs use 64-bit register size in
userspace while being ILP32 ABIs. You'll need to examine the code more
closely in each case to determine what size time_t is, and to what extent
if any 64-bit registers are involved in the syscall ABI. There may be
other cases where 64-bit registers can in fact be used for what's normally
considered a 32-bit ABI (e.g. people have done some work on being able to
use 64-bit registers for 32-bit powerpc code, although the registers are
32-bit for all purposes in the function-calling ABI).
AArch64 ILP32 (not yet in glibc)
MIPS n32
TileGX32
x86_64 x32
TILE-Gx ILP32 mode uses only the low 32 bits of registers for all
syscalls. It uses the full 64-bit register size for "long long" and
the ABI generally permits passing and returning such values in a
single register; we just don't ever do that with the kernel ABI.
--
Chris Metcalf, Mellanox Technologies
http://www.mellanox.com