Page MenuHomeFreeBSD

efi: switch boot_services_gone to boot_services_active
ClosedPublic

Authored by imp on Sep 3 2021, 3:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 1:09 PM
Unknown Object (File)
Mon, Oct 21, 2:57 AM
Unknown Object (File)
Thu, Oct 17, 12:19 AM
Unknown Object (File)
Sep 11 2024, 8:59 PM
Unknown Object (File)
Sep 11 2024, 8:59 PM
Unknown Object (File)
Sep 11 2024, 5:35 AM
Unknown Object (File)
Sep 5 2024, 2:05 AM
Unknown Object (File)
Sep 3 2024, 8:26 PM
Subscribers

Details

Summary

Turn the presence or absence of boot services into a positive bool (and
change its type to bool). Move definition to efi.h in the global
variables section.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Sep 3 2021, 3:06 AM
This revision is now accepted and ready to land.Sep 3 2021, 8:41 AM

What I like about the _gone name is that it makes it quite clear that switch from has_boot_services = true to false is one-time event. You cannot get services back once they are gone.

IMO it was a useful and important detail communicated by the name.

stand/efi/include/efi.h
63

Does stdbool.h work for loader environment?

imp retitled this revision from efi: switch boot_services_gone to has_boot_services to efi: switch boot_services_gone to boot_services_active.Sep 29 2021, 4:07 PM

Move to boot_services_active
It's the positive version of _gone and conveys the same meaning.

This revision now requires review to proceed.Sep 29 2021, 4:08 PM
kib added inline comments.
stand/common/gfx_fb.c
759
This revision is now accepted and ready to land.Sep 30 2021, 2:29 AM