Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp334278imu; Fri, 14 Dec 2018 21:06:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/VZz2PzzG34ySyvJAbkJV40AK41Ux/K13+eEQzUBXkkqauGVVJraKKJBtK0gdP10vDE2FZi X-Received: by 2002:a17:902:b595:: with SMTP id a21mr5183650pls.120.1544850385370; Fri, 14 Dec 2018 21:06:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544850385; cv=none; d=google.com; s=arc-20160816; b=gf5iSf/93G7ztzJtb5ScKvg+8lD7jzGx/aR6alADFKiHaQthspCSldJnK4JJlGs+9v CyU7WvEkTMdSbGM+Grv/ptaj6ioaQqXwOGq6Ln13W0JaPQIm9ebkUlb/XV71laqdhFSi dkYYTMCTrhXDVT7aB+mYgSf7k3Eituq86BbF4iZseNG0KVxeoTslzloEuz7E0wSJI4lE sx5y64Mz1rKIRL45KA7aanB6HmOC5o4h1UwmPrg1q3CKAVIUJGqGVyMrm+cnRKKOwJtQ s4N9yl+xu09OdAPjwCV7ak79F7Hls2r/q+8oYe/n+mJKQPotVJehls6mo2GO+xEGbCTG zChQ== 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 :content-language:references:message-id:in-reply-to:subject:cc:to :from:date; bh=mNF/kPCmJU7BYIIttPGNVYOFNMCmdHkUlqCDrJN1Vn0=; b=KiYV7zvgN0IyemB0BuqGLZWAvBDsWmMJiJk/K26R2x4LOPY3VpSZxhmIHOoBxi9M/0 byvf+gmvcWZYfW4Jcoilz73WrkB8w8nNXtVOti0myEtBYq0/TqCnkiKxWn0+wbg8Evzc raExFc7MEgy2iC7NDVr50BZx+dp5jNdlBgVneZtUX2rumFHjJjCdIiQzEVRtq6//dTDt MoMoQHLJZYMDXtv4mGJtekFyEFtYa8UGizukw336x12pyBQZQkw5KII22frDgD6J6lfT 4X+OlWt5ID/lmmdBQUZzgdkSuU7ktgn3d2mmxuy/xUonGsJKUAS6r/J4N9DqkkvCw3RE FDGw== ARC-Authentication-Results: i=1; mx.google.com; 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 g33si5857182pgm.426.2018.12.14.21.06.10; Fri, 14 Dec 2018 21:06:25 -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; 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 S1729812AbeLOFDk convert rfc822-to-8bit (ORCPT + 99 others); Sat, 15 Dec 2018 00:03:40 -0500 Received: from static-87-79-237-121.netcologne.de ([87.79.237.121]:2499 "EHLO herc.mirbsd.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729245AbeLOFDk (ORCPT ); Sat, 15 Dec 2018 00:03:40 -0500 Received: from herc.mirbsd.org (tg@herc.mirbsd.org [192.168.0.82]) by herc.mirbsd.org (8.14.9/8.14.5) with ESMTP id wBF4rmGx012362 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 15 Dec 2018 04:53:50 GMT Date: Sat, 15 Dec 2018 04:53:48 +0000 (UTC) From: Thorsten Glaser X-X-Sender: tg@herc.mirbsd.org To: Andy Lutomirski cc: Linus Torvalds , X86 ML , LKML , Linux API , "H. Peter Anvin" , Peter Zijlstra , Borislav Petkov , Florian Weimer , Mike Frysinger , "H. J. Lu" , Rich Felker , x32@buildd.debian.org, Arnd Bergmann , Will Deacon , Catalin Marinas Subject: Re: Can we drop upstream Linux x32 support? In-Reply-To: Message-ID: References: Content-Language: de-DE-1901, en-GB X-Message-Flag: Your mailer is broken. Get an update at http://www.washington.edu/pine/getpine/pcpine.html for free. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy Lutomirski dixit: >x32 is not this at all. The kernel ABI part of x32 isn't ILP32. It's >IP32, 32-bit size_t, and *64-bit* long. The core kernel doesn't Yeah, I was looking at this from userspace PoV, as I said I’m not a Linux kernel programmer. In BSD we have register_t which is probably the equivalent to your __kernel_long_t? Maybe removing the “long” from the name helps. But yes, x32 is just a (second to i386) ILP32 userspace API in an amd64 kernel. This does imply mapping on the userspace (x32) to kernel (amd64) boundary and back. I would have thought full struct member mapping, as dalias described, to be the most robust. >something similar to work using the normal x86_64 syscalls. And I'm But those would require the longer structs etc. and therefore lose all the benefits of x32… bye, //mirabilos -- „Cool, /usr/share/doc/mksh/examples/uhr.gz ist ja ein Grund, mksh auf jedem System zu installieren.“ -- XTaran auf der OpenRheinRuhr, ganz begeistert (EN: “[…]uhr.gz is a reason to install mksh on every system.”)