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
F166317957: D31814.id98022.diff
Wed, Aug 12, 9:12 PM
F166311744: D31814.id.diff
Wed, Aug 12, 8:10 PM
Unknown Object (File)
Tue, Aug 11, 8:07 PM
Unknown Object (File)
Mon, Aug 10, 7:14 AM
Unknown Object (File)
Sun, Aug 9, 2:54 PM
Unknown Object (File)
Sun, Aug 9, 9:44 AM
Unknown Object (File)
Fri, Aug 7, 7:17 PM
Unknown Object (File)
Fri, Aug 7, 6:37 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41843
Build 38731: arc lint + arc unit

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