This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 6/6] linux: Use 32-bit time_t for rusage
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Lukasz Majewski <lukma at denx dot de>
- Cc: Andreas Schwab <schwab at suse dot de>, Alistair Francis <alistair dot francis at wdc dot com>, <libc-alpha at sourceware dot org>, <alistair23 at gmail dot com>, Carlos O'Donell <carlos at systemhalted dot org>, Carlos O'Donell <carlos at redhat dot com>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, Arnd Bergmann <arnd at arndb dot de>
- Date: Thu, 6 Feb 2020 21:15:47 +0000
- Subject: Re: [PATCH 6/6] linux: Use 32-bit time_t for rusage
- Ironport-sdr: 8Y2DQzxuSzxV31cXJ9RmrvzQ7s5uhakCRl0ndfu1P3hWQwPRp2UlaOr7PNJUiPzxCauM3hoacE 9zXTdgnct3umVEXOXM3cR9JI6QT8MPN+xELOXbDmbef1JTCuZFW++tA+1avYmodcRq91tJFXWO jMR1S2gegmyDvSAjKoB+xFi6RnPQrdh/6MBv45Fm/E9/pgJXoco/Nnm9ZH34S5rf5YhdZ52phx RK/3DVxVkP4zG//Oda6mH8kX7gIlQNm5Aq28b9BO/0tKd6xlJIl2Yy8eH1DVblLGlwavnOOLUZ yDs=
- Ironport-sdr: u6F1pzdRbngP39Q1lGl1vk7xGnzjNWzMf1e9iW7CxMSMZQonHXa06tua6N6i6L3meicoHXIeay ZLftul+PX+5G9GKPsUdxX2fhGDnwKN+xSM5I8YGmGcSEq+AxHa86lmDuPWvMhrTcUGEznfGs79 4zZ46NttLiM0EwJg+B3YQ/0PeCbv5O5HiS6oezuOHoY1rLx9/tJM1qmXVpqHh77ItiYHjTvWgT FUAealPsAFLsaKHjk7VgafsoIKAmerwm8DHWGNFqdrbehFlEjYPOtEtZ5jsKsNJp1jDxciKx+d IJM=
- References: <20200203183153.11635-1-alistair.francis@wdc.com> <20200203183153.11635-7-alistair.francis@wdc.com> <20200204152307.339fdffa@jawa> <mvmr1zamn6s.fsf@suse.de> <20200204171149.255fb673@jawa>
On Tue, 4 Feb 2020, Lukasz Majewski wrote:
> > unix/linux/generic/wordsize-32 cannot be used for armv7, since it
> > doesn't use asm-generic syscalls.
>
> Could you elaborate on this?
There was a long discussion on the linux-kernel mailing list in 2008, much
of which was under the subject "microblaze syscall list".
The conclusion of that discussion was that, whereas architectures for
which support was added to the Linux kernel up to that point each had
their own syscall ABI (their own syscall numbers, their own set of
associated structure layouts and constants - those layouts and constants
often following those used by some older proprietary Unix on the same
architecture, in the cases of the oldest Linux kernel ports), newer Linux
kernel ports would share a common syscall ABI as far as possible, meaning
the same syscall numbers, constants and structure layouts. This common
ABI is known as the generic or asm-generic ABI.
In glibc, sysdeps/unix/sysv/linux/generic is for architectures using the
asm-generic syscall ABI, and *only* for such architectures (which, in the
end, did not include microblaze). This should not be confused with other
uses of the word "generic" in the glibc context, in particular
sysdeps/generic/.
As the Linux kernel arm port was added before 2008, it does not use the
generic ABI and so cannot use sysdeps/unix/sysv/linux/generic.
--
Joseph S. Myers
joseph@codesourcery.com