Page MenuHomeFreeBSD

stand: Add back missing EFIAPI define
ClosedPublic

Authored by imp on Nov 18 2025, 4:26 AM.
Tags
None
Referenced Files
F162743402: D53799.id166651.diff
Thu, Jul 16, 10:31 AM
Unknown Object (File)
Wed, Jul 15, 6:55 AM
Unknown Object (File)
Wed, Jul 15, 6:55 AM
Unknown Object (File)
Wed, Jul 15, 1:43 AM
Unknown Object (File)
Sat, Jun 20, 4:32 PM
Unknown Object (File)
Jun 15 2026, 12:32 PM
Unknown Object (File)
Jun 10 2026, 3:51 AM
Unknown Object (File)
May 23 2026, 6:52 AM
Subscribers

Details

Summary

EFIAPI has to be defined correctly for amd64, or things won't boot
because it uses a different API than we normally use.

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.Nov 18 2025, 4:26 AM
imp created this revision.
sys/sys/efi-edk2.h
48

Note: this might need a #ifndef arm around it, since the old armv7 file didn't do that.
But I think we have bigger arm issues that I need to sort out.

markj added a subscriber: markj.

Seems ok, this is really just a Tested-by: markj

This revision is now accepted and ready to land.Nov 18 2025, 4:40 AM
This revision was automatically updated to reflect the committed changes.
sys/sys/efi-edk2.h
48

Turns out arm works w/o an arm ifdef. And I don't think we enable _MSC_EXTENSIONS and I think even if we did, __cdecl would #define away. Fun times.

79–80

I'll fix the comment

Minor nits in comments.

sys/sys/efi-edk2.h
48
52