Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1299540ybg; Fri, 18 Oct 2019 15:27:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqycjkUG+Gk4qx4V9CGtCKpdM/CtbAUCWuLq8wq4HwxXiU573tICiGXgyhec0CmJya4/mc1+ X-Received: by 2002:aa7:d389:: with SMTP id x9mr12393131edq.33.1571437670075; Fri, 18 Oct 2019 15:27:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571437670; cv=none; d=google.com; s=arc-20160816; b=tCkPZV+PHTpyfxX2LYS/A2BOKBZ1KkgLDexppPwU+GcHKjxwrSQyf2iS5o6SbYVEWC 8AFIG+yGTAVd9PkFKwEKO5wkAGEoXBmSnydpUhvk0taLFyINh8V2/0vwRM4yZWNM1nQJ e9jsvrLJSClDenhnW35xtG68PLchT9PRqcmcwOWp42HQ1do4CMv9JsqlX0Dht345/yIb kwWR6y8bvb1pxnVSRid7Dz2meOX+mRM3zzhpU71sfjYSen8uuUjTdzvIbrknf8CqrlCP I3Kn4Ke1BRognkTRnfNfI9ijIfcro5xaQ2MDkbSjdnUQkv2GzUCUY+O546eTisrAYbKx CuOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=uXjggwOtvkgB5eV9xeSX/TZ7+sMFrMeqr0FsgRhuxC4=; b=CWdSE9Nr6LjDYG3vK1m6nvd6iAdrTgwbpxo4czFA0eqEI9q5ftynR9sq5BieFkbslA tcuTRvQXxhAFSW96a36NzbtxTPCGeIeQox2L0J+jlwntIqM5AiCJN2HpPWFaXp5at/Nk L0v8U5kh9Oa8S3es2zMERHnoRkCnCdvkrnt/adCFgH88iscYVtJkiiqgl7F6KsWUnglM EX4QnVEvTMfjdQADPGINCKSmjUKDcY1+2jm+bWCZgk5vGMsH5d0CuWPsWgpcjR7SJW5Q lr5u4XoPCC//h5NwqopGDPyJtDRQm5DzS3DJTsU2FF/hbxJF8GnFbJgodkeiNaIGDdlb YN3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=FZdI3WTN; 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 x20si3991407ejb.393.2019.10.18.15.27.27; Fri, 18 Oct 2019 15:27:50 -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; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=FZdI3WTN; 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 S2441933AbfJREyw (ORCPT + 99 others); Fri, 18 Oct 2019 00:54:52 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41098 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725995AbfJREyu (ORCPT ); Fri, 18 Oct 2019 00:54:50 -0400 Received: by mail-wr1-f65.google.com with SMTP id p4so4671372wrm.8 for ; Thu, 17 Oct 2019 21:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uXjggwOtvkgB5eV9xeSX/TZ7+sMFrMeqr0FsgRhuxC4=; b=FZdI3WTN1JpyxqNX9qKx6j7oKXltRzF7eu/3fsDtV8Q0rGY4p2sdyPkZvg52PdRhwp nOoYqpsDZfw3KHrEriiEWxtKLQ6SAUYGa6kYI1tATZYEZ3hzOI+WXtHP/CB6zd4WJ4HJ vRn/kGXuABtsrVg5ZXxWTNy8obNRd/iww/MvIFMVnAo28n8lJYxKzDp4+zmyCzmMuQP+ pWWUt9GgpqDmlfHogG+D/XPyA+AEbgQh7P9KowsPlgMvgSZrT7iy+SVkpM7GH88OlEIj tZ4JvzKrilqUg90OKGtRaw4POhDnWkV54zEIa2urVGdcGWwhmxLNz6vEE7E4qZ8nGCnF ZTIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uXjggwOtvkgB5eV9xeSX/TZ7+sMFrMeqr0FsgRhuxC4=; b=LyVi1dNIt3FCa8TZ38uQy+RUGqDKiT5zbdzphnyTKnwtX9lqlP9LD/TP75FkqKEogC qyJlb/VzQMRmoowPrr/1OISAtVPEyfqclvrvYVpZ3UhxHERN9oTpkmIwWqJkU/ZqCXPI DQtK9eoRocNrRZ83zI2EmVrDHBQV6yPLtAsjZJ9vHTwV3YDuQ67CicIDRLJziXjstoUF KpDQxFPn04pV7bNRDhAcnJgOpx068nnjnlNjs0dfDVZcXQGidk04m1vACcdffqwLRhxg 2yWdJa4Z1zm5Tpu4g9J1BwqBF6JQE4LBvlGC3hXkSG1pg+2wWPSprc4MztGmxluzJjWC iqoQ== X-Gm-Message-State: APjAAAX9O6IbuiTwbritD57BM/EAcICW2DS/JGdzSLP6dYfMXMu1z1sU r44C671gP5FO5i3s6ZgBYUZmoaFYcJHKEatH6rsMMLMtuGY= X-Received: by 2002:adf:f145:: with SMTP id y5mr5433738wro.330.1571368024826; Thu, 17 Oct 2019 20:07:04 -0700 (PDT) MIME-Version: 1.0 References: <20191017173743.5430-1-hch@lst.de> <20191017173743.5430-16-hch@lst.de> In-Reply-To: <20191017173743.5430-16-hch@lst.de> From: Anup Patel Date: Fri, 18 Oct 2019 08:36:54 +0530 Message-ID: Subject: Re: [PATCH 15/15] riscv: disable the EFI PECOFF header for M-mode To: Christoph Hellwig Cc: Palmer Dabbelt , Paul Walmsley , Damien Le Moal , linux-riscv , "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > No point in bloating the kernel image with a bootloader header if > we run bare metal. > > Signed-off-by: Christoph Hellwig > --- > arch/riscv/kernel/head.S | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S > index 71efbba25ed5..dc21e409cc49 100644 > --- a/arch/riscv/kernel/head.S > +++ b/arch/riscv/kernel/head.S > @@ -16,6 +16,7 @@ > > __INIT > ENTRY(_start) > +#ifndef CONFIG_RISCV_M_MODE > /* > * Image header expected by Linux boot-loaders. The image header data > * structure is described in asm/image.h. > @@ -47,6 +48,7 @@ ENTRY(_start) > > .global _start_kernel > _start_kernel: > +#endif /* CONFIG_RISCV_M_MODE */ > /* Mask all interrupts */ > csrw CSR_XIE, zero > csrw CSR_XIP, zero > -- > 2.20.1 > LGTM. Reviewed-by: Anup Patel Regards, Anup