Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1199404ybl; Tue, 13 Aug 2019 08:51:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqygfmLZi51jN1BiC/bfgFdoAHVbZ0hc1VYrohg+lvlakWp6VxznJjMI2gVWpr9BE5ikM8ER X-Received: by 2002:a63:31c1:: with SMTP id x184mr36076089pgx.128.1565711519332; Tue, 13 Aug 2019 08:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565711519; cv=none; d=google.com; s=arc-20160816; b=o9QaHkKT5nb0fTbfVGrDtFldiUQfmPsXALpoMHWDbe4Vvc9fMm7AaMrdFsQH1RCmmJ UiNYyOzphlvAJy0BqpWo2fdbXfq5Yx2hG/MX7088FZB5chhXmqrqpaT4f9XJXbF2wKBt kLorCKfz1lFTn1hihR85XK7Wrf+NC253VpzYsUxqwragA0OqsF19A78bBRG1QnQvoGWA lsPr8sW83a9WY351wkCshXyDAgrB9oFADmth8ISIiC+pWtnILgkQla/qrdTxnb7kObZc 0+usWpkHkJvgjMjTp7Qhs+cdppidKVNts094Vg4UUJgVU819+uesShWJEUmv32RfrKtT 8SHw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zL5sx3Cfj7JP5a1Q8ZkxJrzulDl5XP1ddpP2zH1xYVU=; b=CkJ4DmbhItCb/UQcH+c/FmMlXSUImTqPhSeOPnSSA76z9cH7X5UhEROTpLlGvmbyUl KTsLO13a1wR0CM8lp557czqzmKZFzhB0/1ejjFLJfuDp1PFxqyYQmQ8NzHoGOMNKpPH3 Q2CtDLXoekYx1VHfXqWRp4rOjNUoza0Hui43It+Sel8kKe5NT9oHBNdbqBk6xqxtuabb ju7kQicJa9q2IHYJSt3KkiJE1v7rOmfpcq+Q1yIIpAoKIgJyD6wROBNYq+ukNUpApHJM AA6OnutJ+ed/krevyEkjrWKlrKui4uf4ejHzmRQBGFpvD5sNwazH+Hcv5l5MbrDoSDTe cTIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=TlrVNJeY; 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 m11si59998599pls.148.2019.08.13.08.51.43; Tue, 13 Aug 2019 08:51:59 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=TlrVNJeY; 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 S1730277AbfHMPsf (ORCPT + 99 others); Tue, 13 Aug 2019 11:48:35 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46768 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730269AbfHMPsc (ORCPT ); Tue, 13 Aug 2019 11:48:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=zL5sx3Cfj7JP5a1Q8ZkxJrzulDl5XP1ddpP2zH1xYVU=; b=TlrVNJeYFqX/T4Oov+fGQbfTFI kRICczHDmijyJ7RwDh/20DHmG+SiJNbXfBJ941O6sHqo58JqUIrQdUYxCOrQqHUKdFMFiNzQn8G/L lRbW6T/QPiShluu290d5jl1vLzZJznc+jUjOagRLPeihcqmQbYHVWitadNTb3Bn1nD+IYrz8bAAce vFo3MY2pZCeygCoTqAtVqW6rPxAkazoWwMVVRSn8YZEuPQ/XFl/W4gONGAdRQHUPBVgOHOdce7kZz vfhyKp9qlnciFqYUlTdHp/ClFhn0wJlJSOCF1xAJTM1WGPK57rC4EiMhHH+XD423Q7tA61OdxgErv RO7zSVoQ==; Received: from [2001:4bb8:180:1ec3:c70:4a89:bc61:2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hxZ2E-0005Qp-9X; Tue, 13 Aug 2019 15:48:30 +0000 From: Christoph Hellwig To: Palmer Dabbelt , Paul Walmsley Cc: Damien Le Moal , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 15/15] riscv: disable the EFI PECOFF header for M-mode Date: Tue, 13 Aug 2019 17:47:47 +0200 Message-Id: <20190813154747.24256-16-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190813154747.24256-1-hch@lst.de> References: <20190813154747.24256-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 670e5cacb24e..09fcf3d000c0 100644 --- a/arch/riscv/kernel/head.S +++ b/arch/riscv/kernel/head.S @@ -16,6 +16,7 @@ __INIT ENTRY(_start) +#ifndef CONFIG_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_M_MODE */ /* Mask all interrupts */ csrw CSR_XIE, zero csrw CSR_XIP, zero -- 2.20.1