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)
Tue, May 26, 12:27 PM
Unknown Object (File)
Mon, May 25, 9:04 AM
Unknown Object (File)
Fri, May 22, 11:46 AM
Unknown Object (File)
Wed, May 20, 3:46 AM
Unknown Object (File)
Mon, May 11, 6:09 PM
Unknown Object (File)
Thu, May 7, 9:56 PM
Unknown Object (File)
Apr 17 2026, 9:31 AM
Unknown Object (File)
Apr 9 2026, 6:43 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.