Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12224305rwd; Fri, 23 Jun 2023 03:12:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5uusoXGEZW+9vdsEvw1lElXMWzBiQbA0XAGcL9s6SUOy5TAERX44enw057la29PR2xL9iB X-Received: by 2002:a17:902:db10:b0:1b5:5e7a:8505 with SMTP id m16-20020a170902db1000b001b55e7a8505mr15816551plx.4.1687515154902; Fri, 23 Jun 2023 03:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687515154; cv=none; d=google.com; s=arc-20160816; b=g3tbb1srSpNtJn6lpJ+ITcyb1T7btWExZp3Yabnfud9trbTrI8QRGuQbgObFebgsI5 PGT9fxS+E9XP2Yx1ZmBjTvxooXWjo1SUMGKnitPkAZx73ldAzgjptIrZDDmDGYdvlQeW MbzKZ3kcjqIaYiFL7YWhaIvPMLrY5rXr719Qqw5JIqNQ5+hvP/Wa2qwjyM9V7O1i0zJ6 VE56c540BHCY9LdAeG/G3umDUd8/Ube6sa4xpGGVzaTUWMWKhKTw1kE2e8c59dMkwWi9 tKy/BnJdWyjX+HU3nPVPd2SYBSfNdM2i618PEI7yuab7zHHCp+22wvUws9jasJe4vfNM t5qw== 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=/pQzPxsmpV8ILmUDokZDt4x2j1OZGQdakvLzX04+Ejg=; b=0c/QZ1uf4O3vK+lITZ6Z/pY7bAs+huNTS2uZKsOqbts94H6upyoSZbyMJM0zL/YV3r dd8zJCzrvXEVsOkw2VLsWMl/aeFZ39cXXSEzvZ5M4DyVrEfCPso54z05WHO4pgD0g+OF W9947qcMBV/H1cpuCxhDkMN9dVZ6auongLijG+SAh8Pic0T47YVPlbQBzQdnw37NH0pA i1kpDPmA8r3j9miRUXdIdWx5a5TwmOBCmJCp/F7T/gM67Fh8DxTs3202FbaWFbulnF5O I4+FBotPhIjDnxtH9yjodpAFnOBMrBbfQb/bjhR6Kv7nuqCAsWjbV5mxz807S6A1Rppp Bo/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=DRlPNLsK; 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 t4-20020a1709027fc400b001b037d81d2dsi8020132plb.600.2023.06.23.03.12.17; Fri, 23 Jun 2023 03:12:34 -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=DRlPNLsK; 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 S229999AbjFWJ54 (ORCPT + 99 others); Fri, 23 Jun 2023 05:57:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230120AbjFWJ5z (ORCPT ); Fri, 23 Jun 2023 05:57:55 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C253AD3 for ; Fri, 23 Jun 2023 02:57:53 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3f9bff0a543so5816115e9.3 for ; Fri, 23 Jun 2023 02:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1687514272; x=1690106272; 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=/pQzPxsmpV8ILmUDokZDt4x2j1OZGQdakvLzX04+Ejg=; b=DRlPNLsK/mZ3irMEYdZmnmDdlPds7DvI5au6/NXLEmObZ0q2j+riTTvnF4pnaba5Eb DH2TXjFL5OFBSrzNE1j4a5aGqGz48UHjYrVhZd3wVtPnW2C22JGEuGjsrq+JpfMRJV2k MkWPC6wPxJC27j2xRo0NYQY4kjlkcSDEwr9JRvSSwtmlCEF3IowczoAHbtWW345VGYQr DLQu/ZwtBg6Q81ga1VMS7w7OdSttnxx7sF4T278R3LjJ8THYdUsFWjekXwF9VxCxViVY kF8/QayqIlynx9XhIUmUIXrLU/LQ5y0rz+dMU2qOPVvjSn5y1zTvusx3LzoxEB2uMWUr 2K6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687514272; x=1690106272; 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=/pQzPxsmpV8ILmUDokZDt4x2j1OZGQdakvLzX04+Ejg=; b=lNV5WPXqNV7ZjXUvt2QPs4+lOb9G5XxDJVqsANDACktR5NUxykLExPKUF4773SOsVi XEDepEpV3yYnXk/A+ziwiFoBl0JCf2OPZTmjfQWcDh28bPskBTLS5u070ue4XoRw45KP /1yS8og7Wi3muhhsCh6aMzfZFaVnnT2rVSnVkVFe5NHPFBUAes8rmMk1vPd8ei95YUMF VGgj7MwTuQFx+pAbcKW9PiDCXdmAL/wK1+/6/UdacmI7mZ4+ebpsKnpvC0oszjmi8led 8Jf1d7hugwZQRHfcbGuL6XQhWXjvS8SXCc+PunUUc9iBGNv8c/GSPDUjIbth6RWO1VL5 TXJg== X-Gm-Message-State: AC+VfDwoN8Jgmo/VGF3cOs+qw/RMkcJWF77Ns7q9bvLuLxyk1CIo0stE /C0nOIdmXeK0KRygxYefoMPdUg== X-Received: by 2002:a05:600c:230b:b0:3f1:6fb3:ffcc with SMTP id 11-20020a05600c230b00b003f16fb3ffccmr17377352wmo.22.1687514272211; Fri, 23 Jun 2023 02:57:52 -0700 (PDT) Received: from alex-rivos.ba.rivosinc.com (amontpellier-656-1-456-62.w92-145.abo.wanadoo.fr. [92.145.124.62]) by smtp.gmail.com with ESMTPSA id s9-20020a7bc389000000b003fa745f3264sm1824671wmj.43.2023.06.23.02.57.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 02:57:52 -0700 (PDT) From: Alexandre Ghiti To: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Andrew Jones , Conor Dooley , Sunil V L , Song Shuai , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Alexandre Ghiti , Atish Patra , Palmer Dabbelt Subject: [PATCH v3 3/3] Documentation: riscv: Update boot image header since EFI stub is supported Date: Fri, 23 Jun 2023 11:55:47 +0200 Message-Id: <20230623095547.51881-3-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230623095547.51881-1-alexghiti@rivosinc.com> References: <20230623095547.51881-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 Reviewed-by: Atish Patra Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt --- 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