summaryrefslogtreecommitdiff
path: root/Documentation/riscv/boot-image-header.rst
diff options
context:
space:
mode:
authorAtish Patra <atish.patra@wdc.com>2019-10-09 04:06:37 +0300
committerJonathan Corbet <corbet@lwn.net>2019-12-19 19:32:45 +0300
commit1d5c17e470286b8211e8a18d0f85ae89dec4e8d8 (patch)
treef8f03e5a2b3cca199352c3cfa3fa44a4d7062bd6 /Documentation/riscv/boot-image-header.rst
parenteb43135117adc88ba3fd8b15a649c4bceff79962 (diff)
downloadlinux-1d5c17e470286b8211e8a18d0f85ae89dec4e8d8.tar.xz
RISC-V: Typo fixes in image header and documentation.
There are some typos in boot image header and riscv boot documentation. Fix the typos. Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com> Link: https://lore.kernel.org/r/20191009010637.9955-1-atish.patra@wdc.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/riscv/boot-image-header.rst')
-rw-r--r--Documentation/riscv/boot-image-header.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/riscv/boot-image-header.rst b/Documentation/riscv/boot-image-header.rst
index 518d46d2389d..d7752533865f 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 = 0x05435352; /* 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