Skip to content

Commit 185271a

Browse files
Chester LinJonathan Corbet
authored andcommitted
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>
1 parent 9692f2f commit 185271a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Documentation/riscv/boot-image-header.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The following 64-byte header is present in decompressed Linux kernel image::
2121
u32 res1 = 0; /* Reserved */
2222
u64 res2 = 0; /* Reserved */
2323
u64 magic = 0x5643534952; /* Magic number, little endian, "RISCV" */
24-
u32 magic2 = 0x56534905; /* Magic number 2, little endian, "RSC\x05" */
24+
u32 magic2 = 0x05435352; /* Magic number 2, little endian, "RSC\x05" */
2525
u32 res4; /* Reserved for PE COFF offset */
2626

2727
This header format is compliant with PE/COFF header and largely inspired from

0 commit comments

Comments
 (0)