Page MenuHomeFreeBSD

loader.efi: refresh size in GetMemoryMap retry loop
ClosedPublic

Authored by emaste on Dec 18 2015, 10:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 17, 8:48 PM
Unknown Object (File)
Fri, Jan 3, 8:06 PM
Unknown Object (File)
Thu, Jan 2, 9:50 PM
Unknown Object (File)
Nov 28 2024, 8:49 PM
Unknown Object (File)
Nov 28 2024, 8:15 PM
Unknown Object (File)
Nov 12 2024, 5:02 PM
Unknown Object (File)
Oct 14 2024, 6:16 PM
Unknown Object (File)
Oct 14 2024, 6:16 PM
Subscribers
None

Details

Summary

If ExitBootServices fails due to a stale efi_mapkey then GetMemoryMap must be called again. In this case it is also possible for the memory map to grow, so repeat the initial GetMemoryMap call to fetch the new size.

Also roll bi_add_efi_data_and_exit into bi_load_efi_data as there's no need for it to be a separate function.

PR: 202455
MFC with: rS292338
MFC after: 1 week
Reported by: Berislav Purgar <bpurgar@gmail.com>
Tested by: Berislav Purgar <bpurgar@gmail.com>
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste retitled this revision from to loader.efi: refresh size in GetMemoryMap retry loop.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added reviewers: kib, martymac, imp.
kib edited edge metadata.
This revision is now accepted and ready to land.Dec 18 2015, 11:25 PM
This revision was automatically updated to reflect the committed changes.