Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Documentation: riscv: Update boot image header since EFI stub is supported

The EFI stub is supported on RISC-V so update the documentation that
explains how the boot image header was reused to support it.

Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20230817130734.10387-3-alexghiti@rivosinc.com

authored by

Alexandre Ghiti and committed by
Jonathan Corbet
180bb41d e79be4be

+5 -5
+5 -5
Documentation/riscv/boot-image-header.rst
··· 28 28 Notes 29 29 ===== 30 30 31 - - This header can also be reused to support EFI stub for RISC-V in future. EFI 32 - specification needs PE/COFF image header in the beginning of the kernel image 33 - in order to load it as an EFI application. In order to support EFI stub, 34 - code0 should be replaced with "MZ" magic string and res3(at offset 0x3c) should 35 - point to the rest of the PE/COFF header. 31 + - This header is also reused to support EFI stub for RISC-V. EFI specification 32 + needs PE/COFF image header in the beginning of the kernel image in order to 33 + load it as an EFI application. In order to support EFI stub, code0 is replaced 34 + with "MZ" magic string and res3(at offset 0x3c) points to the rest of the 35 + PE/COFF header. 36 36 37 37 - version field indicate header version number 38 38