HomeFreeBSD

loader.efi: efipart needs to use ioalign

Description

loader.efi: efipart needs to use ioalign

UEFI specification 2.7A, EFI_BLOCK_IO_PROTOCOL, page 566.

The ioalign property does define the alignment of data buffer.

If the alignment is required and our buffer is not aligned, or if
the data buffer is not multiple of Blocksize, we need to use bounce buffer
to perform the block IO. This is much like with BIOS version, except
there the INT13 needs buffer to be located in low memory.

Additionally, we need to handle disk writes properly.

Details

Committed
tsoomeSep 17 2019, 1:50 PM
Parents
rS352445: loader: add memalign() to libsa
Branches
Unknown
Tags
Unknown