diff options
| author | Adriano Cordova <[email protected]> | 2025-03-19 11:45:01 -0300 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2025-04-11 13:20:38 +0200 |
| commit | 3d8e1b7b2df4559fe2ae99ece13d066893f660ea (patch) | |
| tree | a40a64587e0c1af46c0b31494554061be689f247 /boot/bootm_os.c | |
| parent | 36835a9105cf14a72556731e54300f8225190b17 (diff) | |
bootm: add support for initrd in do_bootm_efi
Pass a pointer to a memory mapped initrd and its size to
efi_binary_run. The EFI stack will register an EFI_LOAD_FILE2_PROTOCOL
for the next boot stage to access this initrd.
Signed-off-by: Adriano Cordova <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'boot/bootm_os.c')
| -rw-r--r-- | boot/bootm_os.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/boot/bootm_os.c b/boot/bootm_os.c index f403f352be1..35a32f8c912 100644 --- a/boot/bootm_os.c +++ b/boot/bootm_os.c @@ -508,7 +508,8 @@ static int do_bootm_efi(int flag, struct bootm_info *bmi) ret = efi_binary_run(image_buf, images->os.image_len, images->ft_len ? images->ft_addr : EFI_FDT_USE_INTERNAL, - NULL, 0); + (void *)images->initrd_start, + (size_t)(images->initrd_end - images->initrd_start)); return ret; } |
