]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC part of r273865: fix boot1.efi for block size != 512
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 24 Feb 2015 22:11:07 +0000 (22:11 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 24 Feb 2015 22:11:07 +0000 (22:11 +0000)
commite7c5911531fe84d83ed71935871bce4b80d99e8c
tree82b55d677559572aeea9e6bee530d49de804a866
parent015c982deb0d39b00fe4cb67995418fc731bfa69
MFC part of r273865: fix boot1.efi for block size != 512

r273865 is part of the work for supporting 4Kn drives, but it turns out
the underlying bug can actually cause corruption of the UEFI system
table in any case where block size is not 512.

Relevant portion of the original commit message:

  convert boot1.efi to corrrectly calculate the lba for what the
  media reports and convert the size based on what FreeBSD uses.
  existing code would use the 512 byte lba and convert the
  using 4K byte size.

PR: 197881
Reviewed by: Chris Ruffin

git-svn-id: svn://svn.freebsd.org/base/stable/10@279254 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/boot/amd64/boot1.efi/boot1.c