Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1433159

Re: [PATCH 17/23] [AARCH64] ILP32: introduce syscalls that pass off_t

From Joseph Myers <joseph@codesourcery.com>
Newsgroups linux.kernel
Subject Re: [PATCH 17/23] [AARCH64] ILP32: introduce syscalls that pass off_t
Date 2016-06-28 19:20 +0200
Message-ID <rP4Q1-1uE-31@gated-at.bofh.it> (permalink)
References <rP4wG-18P-33@gated-at.bofh.it> <rP4Q1-1uE-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 28 Jun 2016, Yury Norov wrote:

> ILP32 has 64-bit off_t, to follow modern requirements.
> But kernel clears top-halves of input registers. It means
> we have to pass corresponding arguments in a pair, like
> aarch32 does. In this patch all affected syscalls are redefined.
> Most of them are taken from arm code.

Please follow the spirit of Adhemerval's recent work.  Determine the 
appropriate abstractions for the architecture differences for these 
syscalls, and set up unified implementations used on all architectures, 
rather than increasing the number of architecture-specific variants.

> +#ifdef __ILP32__
> +/* Define this if your 32-bit syscall API requires 64-bit register
> +   pairs to start with an even-number register.  */
> +#define __ASSUME_ALIGNED_REGISTER_PAIRS	1
> +#endif /* __ILP32__ */

Preprocessor indentation.

-- 
Joseph S. Myers
joseph@codesourcery.com

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 17/23] [AARCH64] ILP32: introduce syscalls that pass  off_t Joseph Myers <joseph@codesourcery.com> - 2016-06-28 19:20 +0200

csiph-web