From patchwork Mon Jun 19 09:47:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Ghiti X-Patchwork-Id: 109883 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2885914vqr; Mon, 19 Jun 2023 03:05:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6LMmSvlnIGeQHDcjwVKx/2yswPAnd+jG0MJvdUY8W3Pl2Aj0aS21EAKcGlrxwxQmXF7OKY X-Received: by 2002:a17:903:1245:b0:1b0:56cf:b89d with SMTP id u5-20020a170903124500b001b056cfb89dmr20223437plh.12.1687169143363; Mon, 19 Jun 2023 03:05:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687169143; cv=none; d=google.com; s=arc-20160816; b=B3s+EEga46JSWT/TWsnZbJyCDxEpFfEb+lPiGihDChR73NMtWCCwKJ/jFzBKqH+psc pEIe37w8mzmSq9oPqOw6D5NdE6ai2euTBjssE38cEwbByTw1whXSNb3N7kpI6TZEWwwy akSeeDGEGhLw0dCtJsH639TWi5lR+bYSYNUX05KF8eZlpN8IkLzY6K5HrO9doLFjtCy0 1wXX8rgj92psFjNhsC4D6olZqwUgu2S20LaWeNxauBdjyPTTnTGhSFpud2mbjAVLAbRS RbOxdRl3DOpP5cb7Y1lCy8LnCM4qNyEtFlFzTkTeOjlKao6s9eQqtBWcTR/OXfd41inr ihZA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6-20020a17090a190600b0025ec4206a7csi5688853pjg.169.2023.06.19.03.05.30; Mon, 19 Jun 2023 03:05:43 -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 S231755AbjFSJtL (ORCPT + 99 others); Mon, 19 Jun 2023 05:49:11 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769125071732500754?= X-GMAIL-MSGID: =?utf-8?q?1769125071732500754?= 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 Reviewed-by: Atish Patra --- 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