Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4206863ybi; Tue, 11 Jun 2019 02:47:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/tmHYZ+/8uBcdeLi/xSZh9z0KXWIIz/GlGWOwMYtpqUPkX3CEiHaSE8U2BMsf1TLDNX4k X-Received: by 2002:a62:6044:: with SMTP id u65mr55878892pfb.15.1560246461326; Tue, 11 Jun 2019 02:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560246461; cv=none; d=google.com; s=arc-20160816; b=zJE8gqhlz/s9orm0NZi3GcgQwA1jqn/ny/LBlu09KUYtUaJJ71staFZP4QlJSNsqRt pZnhgAhrHqQGTsI+TSrsdb+JtKbRhtAXVnhVPD1rtmvrlEr1GqshmhfIMoUpkzQnqFhC nHAvBQW5/REtVhrHz78HPOweZgOhi4fLWVlx96iz8N/hJLw1N6WHNNjlCPaKYVgJbjGL 7vgbU1jcyt8o8BzNUhpicFjGmaysJV4SuhVgXbdxWvE6M2cFarwKb68whkRb9+C2YQ+S QF2G/UomEF4H3rzUNON8eKBk3iuEtLlYl9dbk+iF1wk3vg4DWulZd4Z4OlCxdWLJwGuK LqWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ev7u+3V7FbcCEq5mtG9wqFJiaA1UfzqiSt5/k3AyJOo=; b=EJoy2wGZQojyiNGDlsDp5bMWtstSXo8FCL2RVBf4Gf4aRsZGz4QMuVde5+WrhstIUw BjRoPjdkAku92wNoYu6rJ9ToNpcCjbC3M7vjObQPIHUb3B3fGadX2EWjJV1qofhT1l0d RdS4qfwTWfzE9liX53+FNjOx3kR2KuvzoNgQJyBLX7YVwHGprDE1ctHAz3CMhY5IttqS I5jLB3W+Y73K2wQEh5ln/fPsk8+CsuHjzfPoBLM97PlvFVe/GTpSksYxGXBXJOO5mDYC ZfL4J55q9LzR3UQafb0Nqb8JLNCz+uhwvhlpu5vyy+yEsp9XsM7IypJPjaFXlr3AvG9n ZIog== 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 k3si1883081pjt.85.2019.06.11.02.47.25; Tue, 11 Jun 2019 02:47:41 -0700 (PDT) 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 S2404931AbfFKJUj (ORCPT + 99 others); Tue, 11 Jun 2019 05:20:39 -0400 Received: from verein.lst.de ([213.95.11.211]:49580 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404919AbfFKJUh (ORCPT ); Tue, 11 Jun 2019 05:20:37 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id A0DE768B02; Tue, 11 Jun 2019 11:20:07 +0200 (CEST) Date: Tue, 11 Jun 2019 11:20:07 +0200 From: Christoph Hellwig To: Vladimir Murzin Cc: Christoph Hellwig , Greg Ungerer , uclinux-h8-devel@lists.sourceforge.jp, linux-xtensa@linux-xtensa.org, Michal Simek , linux-c6x-dev@linux-c6x.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 15/15] riscv: add binfmt_flat support Message-ID: <20190611092007.GA23387@lst.de> References: <20190610212015.9157-1-hch@lst.de> <20190610212015.9157-16-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 11, 2019 at 09:16:43AM +0100, Vladimir Murzin wrote: > On 6/10/19 10:20 PM, Christoph Hellwig wrote: > > Use the generic support with arguments are on the stack. Same as arm > > and m68k. > > Out of curiosity, what is reason for keeping arguments on the stack? > > ARM port of uClibc has following comment around manipulating of argv/argc: > > /* > * uClinux/arm stacks look a little different from normal > * MMU-full Linux/arm stacks (for no good reason) > */ > > So I though it is kind of legacy. I just copied m68k and arm. But dropping this makes the uclinux crt1 code simpler, so I'll drop the flag for the next version.