Page MenuHomeFreeBSD

efi: Move edk2 compat defines to sys/efi-edk2.h
ClosedPublic

Authored by imp on Nov 9 2025, 10:19 PM.
Tags
None
Referenced Files
F158271501: D53651.id166103.diff
Sat, May 30, 3:31 PM
F158259454: D53651.id.diff
Sat, May 30, 11:57 AM
Unknown Object (File)
Thu, May 28, 10:59 AM
Unknown Object (File)
Tue, May 19, 1:51 PM
Unknown Object (File)
Mon, May 18, 3:46 AM
Unknown Object (File)
Mon, May 18, 3:19 AM
Unknown Object (File)
Sun, May 17, 6:42 PM
Unknown Object (File)
Sun, May 17, 5:16 PM
Subscribers
None

Details

Summary

Create efi-freebsd.h, which is safe to include from the FreeBSD context
(all of userland, except the small bits we share with edk2 and the
kernel). This defines anything that we need. At the moment, it just
includes NULL definitions.

Create efi-edk2.h, which is approximately ProcessorBind.h from edk2 that
we can include in FreeBSD compontents that are re-using edk2 components
(bits of the boot laoder, and libefi*). Update the efi_gid definitions
to match edk2 better. Add this file to badfiles.inc, since we can't
write it in a way that's compatible. This is copied from the old
efi-osdep.h.

Create a ProcessorBind.h that includes efi-edk2.h.

This mostly has to be done in one bigish commit since we can't easily
move things around they are so inter-related.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68492
Build 65375: arc lint + arc unit