From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752348AbcF1RNM (ORCPT ); Tue, 28 Jun 2016 13:13:12 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:48225 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751946AbcF1RNK (ORCPT ); Tue, 28 Jun 2016 13:13:10 -0400 Date: Tue, 28 Jun 2016 17:13:07 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Yury Norov CC: , , , , , , , , , , , , , , , , , Yury Norov Subject: Re: [PATCH 17/23] [AARCH64] ILP32: introduce syscalls that pass off_t In-Reply-To: <1467131978-669-18-git-send-email-ynorov@caviumnetworks.com> Message-ID: References: <1467131978-669-1-git-send-email-ynorov@caviumnetworks.com> <1467131978-669-18-git-send-email-ynorov@caviumnetworks.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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