Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp53416ybl; Thu, 5 Dec 2019 15:04:24 -0800 (PST) X-Google-Smtp-Source: APXvYqzRTb804Q2vdiVy26DjTfvGw/jda6dyjvi9GbQ7qzNNVNkEyDEUrez7iusgp0xdcGLoB4gK X-Received: by 2002:a05:6808:681:: with SMTP id k1mr9977748oig.117.1575587064113; Thu, 05 Dec 2019 15:04:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575587064; cv=none; d=google.com; s=arc-20160816; b=YX7mpWf/cmfvNopGWLiLyfCoCFWWPsooHfedcCrkoe3m3beUKd6DF5NRzqh3/QDt1C UmSi2sjMX7weipBzgVETWaCVJnMTvtzsCW9Yn4TQH5J15LuBLFTQZcos/6GRYr+OFFse h9iW4b6yseI0nWwIWJSvz2tzYPhNv8fmVwYCr1rM1PKyWP74SbAXEDoZQjJjwv7WoSX3 47xOaG4T1QsxqtuqdSbyKDp+RAz0cJT1J6EoVCmsXr06AY5B0NvAo4mPv20NQhdgA3pX wfKuykcqhmO112VhDY4YQNhY0cXlk4VwZlWmW2ORCcf7SYMm5RCwQTmbsOxVXTRB7zn1 sj2g== 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 :message-id:to:cc:in-reply-to:subject:from:date:dkim-signature; bh=VcK5fYtZOQ1Up6kZW76qzY7nQB78Tgg1EbtbB/usWCw=; b=I0m6mhs11AnB/mddiZgUM13ga8woiLMeO5e3uIm5lsk4oJRY50IDJrArf/u0hEJ67B q/pJvG+tCbCB9NP8G/N635Pow8r5zomq5d+ZL4xHW+3wxbeiKVttDnZ7mBxg0mA9qZKp mGVunCO0U1giOp5YXb72fk4uvRz1nOynBJ6DyGAC0tjsF2ckygouGAzMt+hVHCoxRRqy yQ7Z+mNRh/mnclegGLFmC8XjT/gpppStpd0wAKcNntAQJsLSYC17BYlFzQMHL0rQ3QYT NEc0cowRkyTperdpaHNqo3hJWPWRtTEB9d4Eu/AsX5idPw0qXkQqwRY7sCOMsmqoDgqH OEIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=NJFmAAyK; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p11si5669147ota.300.2019.12.05.15.04.09; Thu, 05 Dec 2019 15:04:24 -0800 (PST) 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=@google.com header.s=20161025 header.b=NJFmAAyK; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726047AbfLEXDN (ORCPT + 99 others); Thu, 5 Dec 2019 18:03:13 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:34677 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725927AbfLEXDM (ORCPT ); Thu, 5 Dec 2019 18:03:12 -0500 Received: by mail-pl1-f193.google.com with SMTP id h13so1871243plr.1 for ; Thu, 05 Dec 2019 15:03:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:subject:in-reply-to:cc:to:message-id:mime-version :content-transfer-encoding; bh=VcK5fYtZOQ1Up6kZW76qzY7nQB78Tgg1EbtbB/usWCw=; b=NJFmAAyKgTfnsH3F4E56Ct2k6Ayz/IExZcUrscTAyzl2wzHYCaE4ceIkYNQVL2xH8m dO3cx1VKLTd5K/s8qdB+ir0hP/CdYq+vkLRfEa6sMnJTiZUby6OOiowus4lnLgYrg3P8 d++ECyd2kfABrIk+gPUFR6KJ58MylENemZtXcyRXVzDuOX0jztfAAUAfQE5r+E1ib5W5 uXoG9NrN7/RItitpDrYg0AYtINHrQDrF1PyK33Gn4A3ADqt72s3RsOJlzaWnq+CKjdA2 B9lrwnuRvzEP4MUyYr8+UoTscCHCjLwgl+cywwfMEfeeFw+Yp73pJFeof/junpWwrJwJ yAaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:in-reply-to:cc:to:message-id :mime-version:content-transfer-encoding; bh=VcK5fYtZOQ1Up6kZW76qzY7nQB78Tgg1EbtbB/usWCw=; b=PFl+KzzBAZyYRazln2tajXYMLaw5ni60StsyjbOtGIz/2jDzAbncX2pBNmFOLTQ+A2 NHfl8mwa1rgWCkl69egp4AfXxoiFXVv2L7ZItpqVI64TjgQZ4S1DQ9itLj6SZzWvgLu2 xVKsq/WIyY3Ix1VYoN6KycveULnkr37Kh9njRhBpWRLf4eFciAW4vGsw1DTQJGkJX3oE 8+14z8MDKqrmQpXLLXlyY6uGC6csrCyJuh/BbB+4xgGenMsUQ9uRP61602qLM6K9AZB7 F7I3Xh/JAqlwP7SPxxq4rE2yLQx4g8UCSybwCmDjiE3wrvWaL7hJZvxmaXAg1ieY9CkB nfPQ== X-Gm-Message-State: APjAAAVHbqP3wobiqBn7T0a0qWU8hV90+RCqKTz2HaI8pg3IqcV0EJHE IvFb0LP18IXepivvaahjdVRCdZLEDiA= X-Received: by 2002:a17:902:8d81:: with SMTP id v1mr11397941plo.289.1575586991609; Thu, 05 Dec 2019 15:03:11 -0800 (PST) Received: from localhost ([2620:0:1000:2514:7f69:cd98:a2a2:a03d]) by smtp.gmail.com with ESMTPSA id n26sm12847040pgd.46.2019.12.05.15.03.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 15:03:10 -0800 (PST) Date: Thu, 05 Dec 2019 15:03:10 -0800 (PST) X-Google-Original-Date: Thu, 05 Dec 2019 13:34:44 PST (-0800) From: Palmer Dabbelt X-Google-Original-From: Palmer Dabbelt Subject: Re: [PATCH] RISC-V: Typo fixes in image header and documentation. In-Reply-To: <4912c007ab6c19321c8c988ae2328efbfb3e582d.camel@wdc.com> CC: linux-kernel@vger.kernel.org, corbet@lwn.net, linux-riscv@lists.infradead.org, merker@debian.org, Paul Walmsley , aou@eecs.berkeley.edu, linux-doc@vger.kernel.org, palmer@sifive.com, mchehab+samsung@kernel.org To: Atish Patra Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Nov 2019 14:02:20 PST (-0800), Atish Patra wrote: > On Tue, 2019-10-08 at 18:06 -0700, Atish Patra wrote: >> There are some typos in boot image header and riscv boot >> documentation. >> >> Fix the typos. >> >> Signed-off-by: Atish Patra >> --- >> Documentation/riscv/boot-image-header.rst | 4 ++-- >> arch/riscv/include/asm/image.h | 4 ++-- >> 2 files changed, 4 insertions(+), 4 deletions(-) >> >> diff --git a/Documentation/riscv/boot-image-header.rst >> b/Documentation/riscv/boot-image-header.rst >> index 7b4d1d747585..8efb0596a33f 100644 >> --- a/Documentation/riscv/boot-image-header.rst >> +++ b/Documentation/riscv/boot-image-header.rst >> @@ -22,7 +22,7 @@ The following 64-byte header is present in >> decompressed Linux kernel image:: >> u64 res2 = 0; /* Reserved */ >> u64 magic = 0x5643534952; /* Magic number, little endian, >> "RISCV" */ >> u32 magic2 = 0x56534905; /* Magic number 2, little endian, >> "RSC\x05" */ >> - u32 res4; /* Reserved for PE COFF offset */ >> + u32 res3; /* Reserved for PE COFF offset */ >> >> This header format is compliant with PE/COFF header and largely >> inspired from >> ARM64 header. Thus, both ARM64 & RISC-V header can be combined into >> one common >> @@ -34,7 +34,7 @@ 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 res5(at offset >> 0x3c) should >> + code0 should be replaced with "MZ" magic string and res3(at offset >> 0x3c) should >> point to the rest of the PE/COFF header. >> >> - version field indicate header version number >> diff --git a/arch/riscv/include/asm/image.h >> b/arch/riscv/include/asm/image.h >> index 344db5244547..4f8061a5ac4a 100644 >> --- a/arch/riscv/include/asm/image.h >> +++ b/arch/riscv/include/asm/image.h >> @@ -42,7 +42,7 @@ >> * @res2: reserved >> * @magic: Magic number (RISC-V specific; deprecated) >> * @magic2: Magic number 2 (to match the ARM64 'magic' >> field pos) >> - * @res4: reserved (will be used for PE COFF offset) >> + * @res3: reserved (will be used for PE COFF offset) >> * >> * The intention is for this header format to be shared betweenres4 >> multiple >> * architectures to avoid a proliferation of image header formats. >> @@ -59,7 +59,7 @@ struct riscv_image_header { >> u64 res2; >> u64 magic; >> u32 magic2; >> - u32 res4; >> + u32 res3; >> }; >> #endif /* __ASSEMBLY__ */ >> #endif /* __ASM_IMAGE_H */ > > ping ? Reviewed-by: Palmer Dabbelt I'm assuming this is not going in through the RISC-V tree as it mostly touches Documentation/.