bootloader: support older kernels.
if no microcode is found, we can also omit the optional fields. should help with #15891 Change-Id: I2fcb63ccb0cdf77caf7d5e1770c254561b231a18 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2506 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
5d573f8375
commit
ddcb56f2ac
@ -136,6 +136,8 @@ main(stage2_args *args)
|
||||
// set up kernel args version info
|
||||
gKernelArgs.kernel_args_size = sizeof(kernel_args);
|
||||
gKernelArgs.version = CURRENT_KERNEL_ARGS_VERSION;
|
||||
if (gKernelArgs.ucode_data == NULL)
|
||||
gKernelArgs.kernel_args_size = kernel_args_size_v1;
|
||||
|
||||
// clone the boot_volume KMessage into kernel accessible memory
|
||||
// note, that we need to 8-byte align the buffer and thus allocate
|
||||
|
Loading…
Reference in New Issue
Block a user