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)
Dec 20 2023, 2:52 AM
Unknown Object (File)
Oct 31 2023, 3:33 PM
Unknown Object (File)
Oct 29 2023, 7:35 PM
Unknown Object (File)
Oct 25 2023, 2:10 PM
Unknown Object (File)
Sep 12 2023, 7:47 PM
Unknown Object (File)
Aug 14 2023, 1:39 PM
Unknown Object (File)
Aug 11 2023, 7:23 AM
Unknown Object (File)
Aug 11 2023, 7:07 AM
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.