From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF077C43218 for ; Tue, 11 Jun 2019 09:20:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B9BAB2086A for ; Tue, 11 Jun 2019 09:20:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404940AbfFKJUk (ORCPT ); Tue, 11 Jun 2019 05:20:40 -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.