File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
uefi-test-runner/examples Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
// ANCHOR: use
8
8
use log:: info;
9
+ use uefi:: boot;
9
10
use uefi:: prelude:: * ;
10
11
// ANCHOR_END: use
11
12
@@ -18,7 +19,7 @@ fn main() -> Status {
18
19
// ANCHOR_END: services
19
20
// ANCHOR: log
20
21
info ! ( "Hello world!" ) ;
21
- system_table . boot_services ( ) . stall ( 10_000_000 ) ;
22
+ boot :: stall ( 10_000_000 ) ;
22
23
// ANCHOR_END: log
23
24
// ANCHOR: return
24
25
Status :: SUCCESS
Original file line number Diff line number Diff line change 7
7
use log:: error;
8
8
// ANCHOR: use
9
9
use uefi:: prelude:: * ;
10
- use uefi:: println;
11
10
use uefi:: proto:: shell_params:: ShellParameters ;
11
+ use uefi:: { boot, println} ;
12
12
13
13
extern crate alloc;
14
14
use alloc:: string:: { String , ToString } ;
@@ -21,12 +21,11 @@ fn main() -> Status {
21
21
// ANCHOR_END: entry
22
22
// ANCHOR: services
23
23
uefi:: helpers:: init ( ) . unwrap ( ) ;
24
- let boot_services = system_table. boot_services ( ) ;
25
24
// ANCHOR_END: services
26
25
27
26
// ANCHOR: params
28
27
let shell_params =
29
- boot_services . open_protocol_exclusive :: < ShellParameters > ( image_handle) ;
28
+ boot :: open_protocol_exclusive :: < ShellParameters > ( boot :: image_handle ( ) ) ;
30
29
let shell_params = match shell_params {
31
30
Ok ( s) => s,
32
31
Err ( e) => {
You can’t perform that action at this time.
0 commit comments