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)
Sat, Mar 30, 2:33 PM
Unknown Object (File)
Mar 16 2024, 7:11 PM
Unknown Object (File)
Mar 7 2024, 4:31 PM
Unknown Object (File)
Feb 28 2024, 10:22 AM
Unknown Object (File)
Feb 23 2024, 8:11 PM
Unknown Object (File)
Feb 14 2024, 1:40 PM
Unknown Object (File)
Jan 31 2024, 6:17 PM
Unknown Object (File)
Jan 11 2024, 3:51 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