Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6156238rwd; Mon, 19 Jun 2023 03:15:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5CTaMlHbDtccLtHLHIr+Gk/fqFuTzi212/wbgCzGlvwBwxPYaL8y1kBDtwzI2zt8Nw6fCa X-Received: by 2002:a17:902:f54e:b0:1b3:e2f9:20ec with SMTP id h14-20020a170902f54e00b001b3e2f920ecmr11918405plf.1.1687169730301; Mon, 19 Jun 2023 03:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687169730; cv=none; d=google.com; s=arc-20160816; b=HEZ+8yqGDue0q+LAphZ2AHiBmOk933yvR92hDJs96N++G3v+5VY2QkLTYP2j59e2tg EueiOXNdi23mQ7+GqTmq1zsftt4HUkC/U0ufWSuMBE7kHQ/odNpZDmTtQzCpgXzqk7fh mZh2XbQf2nUwzWshsSXeIPqPz4xqDS4cfqaEt2Msi36jBkr4Wl+mYr6e56Cds49p3BX9 msACbgqpgnmPVOYuMzF+wRzK0NJ2WqwsPKZ+Yp9scOtIBNkGVBUyHtou8cA17URgl7dp oRUEUntGZ6j5TEkGCDThsdmN8wHyD2DcmVIFhUF7OI6kvNGMVUQR2F1y+Kco8kQiNOC4 o3tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=a7SPByKyVPiwN/2FqCBqpnqbBRCuyopKfDoQFMlp0Pg=; b=QgZ4vCsnojuUP69Pahqh9icA1gJOux9CYnvySfKWzZRNJ7XaDAJOStg3Aesq+Gb/ah 7ck8Lg2q5DxJf3A+KZQwgBpwlQAwAQwOORMiy9UVZ75Rog1Kd35TxRZodViXPp3cfSVR snTrxii7cBkq4UYyuwrA9t5RxVeXCQHpV6aYECLv8iFt7nW7Jp0H7kd3GkyMYsYPTHS2 ZlrRIk778OufSU5BlEai/W9YttZ2V1rRyDUyKp6q8hiCwpDjzsPVYmgmMHcJTvzMWksU dzmVCNhICVuVIH30Zrkr/UpSKmEj8nqvcqArViIXJyTnByNeYNPCMDhrbVq79HUHqV6P XfCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=bmSQnUrS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020a170902ecce00b001b53029fee7si6922637plh.297.2023.06.19.03.15.17; Mon, 19 Jun 2023 03:15:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=bmSQnUrS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231754AbjFSJtJ (ORCPT + 99 others); Mon, 19 Jun 2023 05:49:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbjFSJsS (ORCPT ); Mon, 19 Jun 2023 05:48:18 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48BE3110 for ; Mon, 19 Jun 2023 02:48:17 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b45a71c9caso38054831fa.3 for ; Mon, 19 Jun 2023 02:48:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1687168095; x=1689760095; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=a7SPByKyVPiwN/2FqCBqpnqbBRCuyopKfDoQFMlp0Pg=; b=bmSQnUrSqleWQxuOOJHziLNGlBJwx1UmYKUBfklFbIAeB8U5h+81cjA0KCNl57VTYO rZvlBcOFaUUyFHTEG+yRnEw07mP9+WfL/4Txb116IzGJsUz1ELXUrtn10GHImlG5DJBe eBxc6JULv/EB+xxGYnt3+yQ59Zv/vaIxQX2maQOtsQ65MzCZuLdm8K54vr6jp/JNEdcV 1sgOSt40aD6vKH7ZCysoB8p2tM69MNOZMA7uPedLmtiX4ZHN7gmptkIUHDxb7KmDak2u OnUFoPuH+P9Dz6cXFGLciHGUarCskCtl9DMguvm4L443Qw9ECl4f6S75avXowA7wsNye +e8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687168095; x=1689760095; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=a7SPByKyVPiwN/2FqCBqpnqbBRCuyopKfDoQFMlp0Pg=; b=OCr7IaV8RR+wO2VwKRaWBexY7/dsPcSU3ep0ZRIqXM0HRutem9Y3tBrHkzTVQeBOXG MuSMlX93C/lbubUiA2Zoq5fwyEOwQKpYBWqsapoayYyCxfwzw3wYjdSjnnDdekA5P4/U wsGTbyBILALLGwGgt+kUNeeNs59RgrUQZfEfp2KKaAyfzHgRld0ifJiyZJSngSoilmH5 1RTh/MBbOVL6rAc54MS3QMby8u/JXdRJKd3SqTpcHNcb06kGIIKUeU91z4t1bV9jgM3B GyabP+VkDD73fa7tj98eIqFIhsOTDkNB+RY8JJbrgLmhFJFTxNasW0h5eSfpg4Gw/UzS VxJw== X-Gm-Message-State: AC+VfDyXHTCGoNjKNnHLlsF26Vj/aIMra+iozYmBZ1L+TIs2raaJlVJY UsnKCRSpr8/7vvG9k3J6oOZcsA== X-Received: by 2002:a2e:9c03:0:b0:2b4:6bc2:a540 with SMTP id s3-20020a2e9c03000000b002b46bc2a540mr1989324lji.15.1687168095301; Mon, 19 Jun 2023 02:48:15 -0700 (PDT) Received: from localhost.localdomain (amontpellier-656-1-456-62.w92-145.abo.wanadoo.fr. [92.145.124.62]) by smtp.gmail.com with ESMTPSA id c25-20020a05600c0ad900b003f18b942338sm10217564wmr.3.2023.06.19.02.48.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 02:48:15 -0700 (PDT) From: Alexandre Ghiti To: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Alexandre Ghiti Subject: [PATCH 2/2] Documentation: riscv: Update boot image header since EFI stub is supported Date: Mon, 19 Jun 2023 11:47:05 +0200 Message-Id: <20230619094705.51337-2-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230619094705.51337-1-alexghiti@rivosinc.com> References: <20230619094705.51337-1-alexghiti@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The EFI stub is supported on RISC-V so update the documentation that explains how the boot image header was reused to support it. Signed-off-by: Alexandre Ghiti --- Documentation/riscv/boot-image-header.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/riscv/boot-image-header.rst b/Documentation/riscv/boot-image-header.rst index a4a45310c4c4..df2ffc173e80 100644 --- a/Documentation/riscv/boot-image-header.rst +++ b/Documentation/riscv/boot-image-header.rst @@ -28,11 +28,11 @@ header in future. Notes ===== -- This header can also be reused to support EFI stub for RISC-V in future. EFI - specification needs PE/COFF image header in the beginning of the kernel image - in order to load it as an EFI application. In order to support EFI stub, - code0 should be replaced with "MZ" magic string and res3(at offset 0x3c) should - point to the rest of the PE/COFF header. +- This header is also reused to support EFI stub for RISC-V. EFI specification + needs PE/COFF image header in the beginning of the kernel image in order to + load it as an EFI application. In order to support EFI stub, code0 is replaced + with "MZ" magic string and res3(at offset 0x3c) points to the rest of the + PE/COFF header. - version field indicate header version number -- 2.39.2