From 8aa8345a68435a37df8a279dadc6c534680efab4 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sun, 3 Mar 2019 22:08:23 -0500 Subject: [PATCH] boot/bios_ia32: Remove the unused flat_buffer field. Suggested by korli in #11019. We pass this struct directly to the BIOS, so pack it while we are here. Checked against GRUB (it also does not have this field.) Change-Id: I9a2708c44ff48fd702175053f2889443d6f7a003 Reviewed-on: https://review.haiku-os.org/c/1145 Reviewed-by: Adrien Destugues --- src/system/boot/platform/bios_ia32/devices.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/system/boot/platform/bios_ia32/devices.cpp b/src/system/boot/platform/bios_ia32/devices.cpp index 7a86f41e6f..59d2da3b9b 100644 --- a/src/system/boot/platform/bios_ia32/devices.cpp +++ b/src/system/boot/platform/bios_ia32/devices.cpp @@ -48,8 +48,7 @@ struct disk_address_packet { uint16 number_of_blocks; uint32 buffer; uint64 lba; - uint64 flat_buffer; -}; +} _PACKED; static const uint16 kParametersSizeVersion1 = 0x1a; static const uint16 kParametersSizeVersion2 = 0x1e;