]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - Documentation/riscv/boot-image-header.rst
Merge tag 'drm-next-2020-02-04' of git://anongit.freedesktop.org/drm/drm
[linux.git] / Documentation / riscv / boot-image-header.rst
index 518d46d2389dbe1013570a89519c6dc00ac4e225..d7752533865ff9a0a24c7b85034282169a23019d 100644 (file)
@@ -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