Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp319732imu; Wed, 7 Nov 2018 18:10:47 -0800 (PST) X-Google-Smtp-Source: AJdET5f5YFAJDz152BojhDTCVZsfY3EMviVRk4eCriLyfUkATti9B8Ope023wTr+YWFWvLDiIV00 X-Received: by 2002:a62:3301:: with SMTP id z1-v6mr2661971pfz.85.1541643047640; Wed, 07 Nov 2018 18:10:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541643047; cv=none; d=google.com; s=arc-20160816; b=DbeFaLWokVaLpyRjNZ1xKuxIsuWO1ND7M4fkm4kFBUQ0wGtxDwSHY171ZKf6zxbcbF +OHpPt3pHwJh5LpxpU24opLTFlPk9YJTgtuOCRnJ8KfhbXKoxTSKdLzO7Ym4xOmNuVw1 emeNlfr0l6OI2n2rCDXfd8c7SjqzPNk+eCwA0pixKIIumnCnRuay0MareApSYos7m2hu nlWkgzMXqmomZwa9KUnAhgovDM8vdOX60BgOApRplg/6QKrNcYkkR2w7Z0H6lYJoaJOj MSO+Swo4HNANJgjgSrp6i/Qy+bMx8V3UzsERpk9wyZu1CZPGqgB58rp3ao6/7E5pUKr3 CeIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=7kEW53Tsf4vuHdcoSOTmu0pyxCYFBfcemBPKy1+w5vQ=; b=rV9W+ri1qBebE2jaHZHYRswPpG8eMO0KtowZqopmWHr1J9XvcMDa63AEqm2KrHhSkS 5SOrRbRIUyw3awXYiAWRCLWfzGY5z10DIe6tJSX3cbNI4uu+jXX2c1xo+5ncNfPUCWBS zWl/FqSOjSx37zH4T/SFmUkhLu7iwvj+X5MutWmH9MyXyBxlYsRtz/38WxBGJsZpkQQB rlqCuTMfYCTtou8EdjepZcVCUxwgjqdEKON3KHbwM3gCUV/xpVAMzfcco6ZmRs0z/mH4 OpnFB3dTK69bFf3JxRyxaBXjidkE4pphtiuqmJC8Q3aZZuERZ7zPHipU389TN1uOft5T wiRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=fk6kgpfl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4-v6si2461542plo.69.2018.11.07.18.10.31; Wed, 07 Nov 2018 18:10:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=fk6kgpfl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728562AbeKHLnS (ORCPT + 99 others); Thu, 8 Nov 2018 06:43:18 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40768 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728445AbeKHLnS (ORCPT ); Thu, 8 Nov 2018 06:43:18 -0500 Received: by mail-pf1-f196.google.com with SMTP id x2-v6so4480877pfm.7 for ; Wed, 07 Nov 2018 18:10:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=7kEW53Tsf4vuHdcoSOTmu0pyxCYFBfcemBPKy1+w5vQ=; b=fk6kgpfl8XwG70W9Sc7cvloIkP5a89O+EiOwfsrji8K2IovJJiWEUhb4pDARDlfXlg jr4/qNuTnhtf9fkmuPoNIkaVfpOnbl3O7oORzPrZXatvG/UkJIqFpAu0Gws1SVjxQCho Lbd4tiqEyIFaDcXprjoxWQ8cks7WaFXKIQY2g/W2A0RB7cbCAYFEJMzvwDxySpJyLUer So6s2l+8MNjwqYMUufHEKvZpPqZvPRt0L7bHGThvGJpl9tfjwO2T0HBkp3HE5nWu65Ur swkRZeISUvO5jh/FDnjT4TtV6x1fe1dK+LyVtpwzbx4KrGKxMyHDoK21xjrD/AKXuut6 bUkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=7kEW53Tsf4vuHdcoSOTmu0pyxCYFBfcemBPKy1+w5vQ=; b=B1z7AKNkuQaQvgltEIhtXY9cFbldZpzkNdmMwxLGad3EfSemUh6sCX9G6V80CB+JPR nwn+7AyDGsfELZfbod23iIoX2JqwR2kUf7jiZbK4OcwlRLjU+KJLC1tPRhBEth/Ayb1w UDHBDWRaD+Vj5Nxf9/gfJ+vfdqmkgb3XRunFIyTyr4LqRE8zAH3OXbLZ+arjN8UPmhHj FtZ4d6dbZU7CRa+Pa5kqbpYLZOT8r2gKOyDLiMA8YDItZKWA82WUUBbjEnWszfhe9oYH dn/RI4U8fp5VOgDVjs/qZbhLdsc+B1SHQV3zeL04qkAI3RD2fyV3qYddZ6A84kaJGFer ++IA== X-Gm-Message-State: AGRZ1gI4mbjYVtVDocfAlWjw7voXqmgj//kyOmBfn1ZqdHKAjdvllQYk aoEVw/W0Jtdt+oruTfFByoFH+w== X-Received: by 2002:a63:5153:: with SMTP id r19mr2257317pgl.281.1541643010023; Wed, 07 Nov 2018 18:10:10 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id q76-v6sm2512764pfa.18.2018.11.07.18.10.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 18:10:09 -0800 (PST) Date: Wed, 07 Nov 2018 18:10:09 -0800 (PST) X-Google-Original-Date: Wed, 07 Nov 2018 18:09:18 PST (-0800) Subject: Re: [PATCH] riscv: add asm/unistd.h UAPI header In-Reply-To: CC: david.abdurachmanov@gmail.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, marcin.juszkiewicz@linaro.org, linux@roeck-us.net From: Palmer Dabbelt To: Arnd Bergmann Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 07 Nov 2018 13:09:39 PST (-0800), Arnd Bergmann wrote: > On Wed, Nov 7, 2018 at 7:30 PM David Abdurachmanov > wrote: >> On Wed, Nov 7, 2018 at 1:08 AM Palmer Dabbelt wrote: >> > On Mon, 05 Nov 2018 12:56:15 PST (-0800), Arnd Bergmann wrote: > >> > The target is still the next glibc release (Feb 1st) for a stable RV32I ABI. >> > That's progressing well, with one last blocking issue related to some of our >> > floating-point emulation routines before we can submit the port. This should >> > give us ample time to line up the ABIs correctly so everything works. >> > >> > So I think the correct answer here is to drop __ARCH_WANT_STAT64 from RISC-V. >> > >> >> Then if you agree I could do and send v2: >> >> +#ifdef __LP64__ >> +#define __ARCH_WANT_NEW_STAT >> +#endif /* __LP64__ */ > > Looks good to me. This is a bit pedantic, but I'm not sure what the right answer is here: "-march=rv64gc -mabi=ilp32d" will not define __LP64__, but will define "__riscv_xlen == 64". I actually don't know enough about how an rv64gc/ilp32d ABI would work to answer this: would we have "long long" all over our syscalls? Probably not worth worrying about for now, as we'll have to go audit all of these if we ever end up with an ilp32 ABI. So just go for it and we'll throw this on the pile to deal with later :)