summaryrefslogtreecommitdiff
path: root/Documentation/riscv/boot-image-header.rst
diff options
context:
space:
mode:
authorChester Lin <clin@suse.com>2019-09-16 16:01:40 +0300
committerJonathan Corbet <corbet@lwn.net>2019-10-03 19:51:42 +0300
commit185271a1fa0720110d26200b44cc36c02210604c (patch)
tree1a0f809e3f0a5a838be30fe6c52ac2e4cc1f14ee /Documentation/riscv/boot-image-header.rst
parent9692f2fdb163a4a5e79ddb9b7e0f15d30384c7c2 (diff)
downloadlinux-185271a1fa0720110d26200b44cc36c02210604c.tar.xz
riscv-docs: correct the sequence of the magic number 2 since it's little endian
Correct the sequence of the magic number 2 since it's little endian. Signed-off-by: Chester Lin <clin@suse.com> Reviewed-by: Paul Walmsley <paul.walmsley@sifive.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.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/riscv/boot-image-header.rst b/Documentation/riscv/boot-image-header.rst
index 7b4d1d747585..518d46d2389d 100644
--- a/Documentation/riscv/boot-image-header.rst
+++ b/Documentation/riscv/boot-image-header.rst
@@ -21,7 +21,7 @@ The following 64-byte header is present in decompressed Linux kernel image::
u32 res1 = 0; /* Reserved */
u64 res2 = 0; /* Reserved */
u64 magic = 0x5643534952; /* Magic number, little endian, "RISCV" */
- u32 magic2 = 0x56534905; /* Magic number 2, little endian, "RSC\x05" */
+ u32 magic2 = 0x05435352; /* Magic number 2, little endian, "RSC\x05" */
u32 res4; /* Reserved for PE COFF offset */
This header format is compliant with PE/COFF header and largely inspired from