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
F103978434: D31814.diff
Sun, Dec 1, 11:39 PM
Unknown Object (File)
Sat, Nov 30, 10:58 PM
Unknown Object (File)
Wed, Nov 27, 12:21 AM
Unknown Object (File)
Wed, Nov 27, 12:20 AM
Unknown Object (File)
Tue, Nov 26, 11:45 PM
Unknown Object (File)
Sun, Nov 17, 5:47 AM
Unknown Object (File)
Thu, Nov 14, 9:00 PM
Unknown Object (File)
Thu, Nov 14, 1:10 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