We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d4ae463 + 6ca1cfb commit c52c71eCopy full SHA for c52c71e
uefi/src/boot.rs
@@ -521,6 +521,18 @@ pub unsafe fn exit(
521
)
522
}
523
524
+/// Stalls execution for the given number of microseconds.
525
+pub fn stall(microseconds: usize) {
526
+ let bt = boot_services_raw_panicking();
527
+ let bt = unsafe { bt.as_ref() };
528
+
529
+ unsafe {
530
+ // No error conditions are defined in the spec for this function, so
531
+ // ignore the status.
532
+ let _ = (bt.stall)(microseconds);
533
+ }
534
+}
535
536
/// A buffer returned by [`locate_handle_buffer`] that contains an array of
537
/// [`Handle`]s that support the requested protocol.
538
#[derive(Debug, Eq, PartialEq)]
0 commit comments