[haiku-commits] Change in haiku[master]: bootloader: support older kernels.

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 21 Apr 2020 08:39:16 +0000

From Jérôme Duval <jerome.duval@xxxxxxxxx>:

Jérôme Duval has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/2506 ;)


Change subject: bootloader: support older kernels.
......................................................................

bootloader: support older kernels.

if no microcode is found, we can also omit the optional fields.
should help with #15891
---
M src/system/boot/loader/main.cpp
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/06/2506/1

diff --git a/src/system/boot/loader/main.cpp b/src/system/boot/loader/main.cpp
index d4a41c5..cf470e8 100644
--- a/src/system/boot/loader/main.cpp
+++ b/src/system/boot/loader/main.cpp
@@ -136,6 +136,8 @@
                        // 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

--
To view, visit https://review.haiku-os.org/c/haiku/+/2506
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I2fcb63ccb0cdf77caf7d5e1770c254561b231a18
Gerrit-Change-Number: 2506
Gerrit-PatchSet: 1
Gerrit-Owner: Jérôme Duval <jerome.duval@xxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: bootloader: support older kernels. - Gerrit