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.
1 parent dc7a34d commit b7d9f26Copy full SHA for b7d9f26
src/table/boot.rs
@@ -50,7 +50,7 @@ pub struct BootServices {
50
// Misc services
51
get_next_monotonic_count: usize,
52
stall: extern "C" fn(usize) -> Status,
53
- set_watchdog_timer: usize,
+ set_watchdog_timer: extern"C"fn(timeout:usize,watchdog_code:u64,data_size:usize,watchdog_data:*mutu16) -> Status,
54
55
// Driver support services
56
connect_controller: usize,
@@ -236,6 +236,11 @@ impl BootServices {
236
assert_eq!((self.stall)(time), Status::Success);
237
}
238
239
+ /// Set the watchdog timer.
240
+ pub fn set_watchdog_timer(&self, timeout: usize, watchdog_code: u64, data_size: usize, watchdog_data: *mut u16) {
241
+ assert_eq!((self.set_watchdog_timer)(timeout, watchdog_code, data_size, watchdog_data), Status::Success);
242
+ }
243
+
244
/// Copies memory from source to destination. The buffers can overlap.
245
pub fn memmove(&self, dest: *mut u8, src: *const u8, size: usize) {
246
(self.copy_mem)(dest, src, size);
uefi-test-runner/src/boot/misc.rs
@@ -0,0 +1,10 @@
1
+use uefi::table::boot::BootServices;
2
+use core::ptr;
3
4
+pub fn test(bt: &BootServices) {
5
+ test_watchdog(bt);
6
+}
7
8
+fn test_watchdog(bt: &BootServices) {
9
+ bt.set_watchdog_timer(0, 0, 0, ptr::null_mut());
10
uefi-test-runner/src/boot/mod.rs
@@ -2,6 +2,8 @@ use uefi::table::boot::BootServices;
pub fn test(bt: &BootServices) {
memory::test(bt);
+ misc::test(bt);
mod memory;
+mod misc;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments