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
Unknown Object (File)
Wed, Jan 14, 6:20 PM
Unknown Object (File)
Wed, Jan 14, 10:53 AM
Unknown Object (File)
Thu, Jan 1, 6:05 AM
Unknown Object (File)
Sun, Dec 28, 3:10 PM
Unknown Object (File)
Dec 26 2025, 12:33 PM
Unknown Object (File)
Dec 25 2025, 11:08 AM
Unknown Object (File)
Dec 12 2025, 5:44 AM
Unknown Object (File)
Dec 1 2025, 12:48 AM
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 Not Applicable
Unit
Tests Not Applicable