Page MenuHomeFreeBSD

Simplify the EFI delay() function by calling BS->Stall().
ClosedPublic

Authored by bcran on Aug 16 2018, 7:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 22, 3:48 AM
Unknown Object (File)
Sun, Oct 19, 4:25 AM
Unknown Object (File)
Sat, Sep 27, 11:55 PM
Unknown Object (File)
Thu, Sep 25, 2:05 AM
Unknown Object (File)
Sep 13 2025, 5:04 AM
Unknown Object (File)
Sep 11 2025, 4:32 AM
Unknown Object (File)
Sep 10 2025, 11:25 PM
Unknown Object (File)
Sep 8 2025, 1:01 PM
Subscribers
None

Details

Test Plan

Tested on Qemu 2.12.0-rc3 with OVMF.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested changes to this revision.Aug 17 2018, 2:30 AM
imp added inline comments.
stand/efi/libefi/delay.c
36 โ†—(On Diff #46794)

When was this function added to the UEFI standard? If it's too new, then you'll need to provide a fallback...

This revision now requires changes to proceed.Aug 17 2018, 2:30 AM
stand/efi/libefi/delay.c
36 โ†—(On Diff #46794)

It's in UEFI 2.0 from 2006, and EFI 1.10 from 2002.

This revision is now accepted and ready to land.Aug 17 2018, 2:42 AM

I've now tested the change on an ARM64 Overdrive 1000, an EFI 1.10 MacBook Pro from 2007, and a ThinkPad T530.

This year's award for going above and beyond in testing goes to...

In D16753#366156, @imp wrote:

This year's award for going above and beyond in testing goes to...

Tested with U-Boot 2018.07 (current in ports) and upcoming 2018.09 :)

This revision was automatically updated to reflect the committed changes.