/** * Delay for a fixed number of microseconds * * @v usecs Number of microseconds for which to delay */ static void efi_udelay ( unsigned long usecs ) { EFI_BOOT_SERVICES *bs = efi_systab->BootServices; EFI_STATUS efirc; if ( ( efirc = bs->Stall ( usecs ) ) != 0 ) { DBG ( "EFI could not delay for %ldus: %s\n", usecs, efi_strerror ( efirc ) ); /* Probably screwed */ } }
EFI_STATUS EFIAPI OvrStall( IN UINTN Microseconds ) { EFI_STATUS Status; Status = gOrgBS.Stall(Microseconds); // do not print - too many calls //PRINT("->Stall(%d) = %r\n", Microseconds, Status); return Status; }