Always use an allocated buffer for {Read,Write}Blocks() to make
authoryasuoka <yasuoka@openbsd.org>
Wed, 17 Mar 2021 05:41:34 +0000 (05:41 +0000)
committeryasuoka <yasuoka@openbsd.org>
Wed, 17 Mar 2021 05:41:34 +0000 (05:41 +0000)
commit6202161edfd7c245b686aa7e49ac4d4ecfad7dda
tree7733d21fc9fe469ee5dbfb4abb7bc797be73429e
parentf682ae62a6d2c41898b9bc3082642b0fdc0077ea
Always use an allocated buffer for {Read,Write}Blocks() to make
efid_io() simpler.  Also fixes the problem on some machines when boot
from CD-ROM.  It happened because the previous version passed
unaligned pointers to the functions even if it is restricted by the
IoAlign property of the media.  idea from kettenis, work with asou

ok kettenis
sys/arch/amd64/stand/efiboot/conf.c
sys/arch/amd64/stand/efiboot/efidev.c