Page MenuHomeFreeBSD

loader: abstract boot services exiting to libefi function

Authored by imp on Sep 29 2021, 4:09 PM.



Move direct call of ExitBootServices to efi_exit_boot_services. This
function sets boot_services_active to false so callers don't have to do
it everywhere (though currently only loader/bootinfo.c is affected).

Sponsored by: Netflix

Test Plan

This starts to abstract whether or not boot services are available
Though maybe we should just set BS = NULL and let callers that care use that (or better: have all callers go through a wrapper that returns an error when it's gone)

Diff Detail

R10 FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

imp requested review of this revision.Sep 29 2021, 4:09 PM
imp added reviewers: tsoome, kevans.
This revision was not accepted when it landed; it landed in state Needs Review.Nov 21 2021, 4:08 PM
This revision was automatically updated to reflect the committed changes.