[PATCH v2 07/10] efi/libstub: riscv: Use struct efi_image_info to access image properties
Jason Gunthorpe
jgg at nvidia.com
Fri Nov 13 07:10:21 PST 2026
> [ ... 41 lines skipped ... ]
> @@ -20,7 +19,7 @@ unsigned long stext_offset(void)
> * of the file representation. So instead, we need to jump to the
> * actual entrypoint in the .text region of the image.
> */
> - return _start_kernel - _start;
> + return efistub_kernel_entry_offset(efistub_get_image_info());
> }
Same primary_entry() transformation is possible here
--
Jason
More information about the linux-riscv
mailing list