@@ -17,20 +17,19 @@ pub fn test(bt: &BootServices) {
17
17
}
18
18
19
19
info ! ( "Running UEFI multi-processor services protocol test" ) ;
20
- if let Ok ( handle) = bt. get_handle_for_protocol :: < MpServices > ( ) {
21
- let mp_support = & bt
22
- . open_protocol_exclusive :: < MpServices > ( handle)
23
- . expect ( "failed to open multi-processor services protocol" ) ;
24
-
25
- test_get_number_of_processors ( mp_support) ;
26
- test_get_processor_info ( mp_support) ;
27
- test_startup_all_aps ( mp_support, bt) ;
28
- test_startup_this_ap ( mp_support, bt) ;
29
- test_enable_disable_ap ( mp_support) ;
30
- test_switch_bsp_and_who_am_i ( mp_support) ;
31
- } else {
32
- warn ! ( "Multi-processor services protocol is not supported" ) ;
33
- }
20
+ let handle = bt
21
+ . get_handle_for_protocol :: < MpServices > ( )
22
+ . expect ( "failed to get multi-processor services handle" ) ;
23
+ let mp_support = & bt
24
+ . open_protocol_exclusive :: < MpServices > ( handle)
25
+ . expect ( "failed to open multi-processor services protocol" ) ;
26
+
27
+ test_get_number_of_processors ( mp_support) ;
28
+ test_get_processor_info ( mp_support) ;
29
+ test_startup_all_aps ( mp_support, bt) ;
30
+ test_startup_this_ap ( mp_support, bt) ;
31
+ test_enable_disable_ap ( mp_support) ;
32
+ test_switch_bsp_and_who_am_i ( mp_support) ;
34
33
}
35
34
36
35
fn test_get_number_of_processors ( mps : & MpServices ) {
0 commit comments