]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
gptboot.efi: align secbuf to 4K
authormhorne <mhorne@FreeBSD.org>
Wed, 3 Jun 2020 16:38:16 +0000 (16:38 +0000)
committermhorne <mhorne@FreeBSD.org>
Wed, 3 Jun 2020 16:38:16 +0000 (16:38 +0000)
commit08583f257597c03ed8e594084f124366290a71fd
treeacbde00f7112c90a7f84b619ba7efe57c9e32121
parentf747b279f13fb9f2792cb1e4ac3e1575304a332c
gptboot.efi: align secbuf to 4K

The u-boot EFI implementation of the ReadBlocks and WriteBlocks methods
requires that the provided buffer meet the IO alignment requirements of
the underlying disk. Unlike loader.efi, gptboot.efi doesn't check this
requirement, and therefore fails to perform a successful read. Adjust
secbuf's alignment to 4K in hopes that we will always meet this
requirement.

Reviewed by: imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D25111
stand/efi/gptboot/proto.c