riscv-docs: correct the sequence of the magic number 2 since it's little endian
authorChester Lin <clin@suse.com>
Mon, 16 Sep 2019 13:01:40 +0000 (13:01 +0000)
committerJonathan Corbet <corbet@lwn.net>
Thu, 3 Oct 2019 16:51:42 +0000 (10:51 -0600)
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>
Documentation/riscv/boot-image-header.rst

index 7b4d1d7..518d46d 100644 (file)
@@ -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