From 51429f04179453622530b5fc1a2bb62f8c4deb75 Mon Sep 17 00:00:00 2001 From: Jessica Hamilton Date: Fri, 20 Dec 2019 19:56:13 -0600 Subject: [PATCH] kernel/efi: Drop device_set_path_end. Fixes booting Haiku with EFI under qemu Change-Id: Iafa6cf064675d5f2beb134a6c6a906d137c70dc5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2040 Reviewed-by: Alex von Gluck IV --- src/system/boot/platform/efi/devices.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/system/boot/platform/efi/devices.cpp b/src/system/boot/platform/efi/devices.cpp index f9b3130e66..d9dc5fe548 100644 --- a/src/system/boot/platform/efi/devices.cpp +++ b/src/system/boot/platform/efi/devices.cpp @@ -43,16 +43,6 @@ static efi_guid LoadedImageGUID = EFI_LOADED_IMAGE_PROTOCOL_GUID; static efi_guid DevicePathGUID = EFI_DEVICE_PATH_PROTOCOL_GUID; -static void -device_set_path_end(efi_device_path_protocol* path) -{ - path->Type = DEVICE_PATH_END; - path->SubType = DEVICE_PATH_ENTIRE_END; - path->Length[0] = sizeof(efi_device_path_protocol); - path->Length[1] = 0; -} - - static bool device_path_end(efi_device_path_protocol* path) { @@ -324,8 +314,6 @@ add_boot_device_for_image(NodeList *devicesList) return B_ERROR; } - device_set_path_end(NextDevicePathNode(node)); - size_t length = device_path_length(devicePath); efi_device_path_protocol *savedDevicePath = (efi_device_path_protocol*)malloc(length);