@@ -20,7 +20,7 @@ use core::ptr;
2020use core:: time:: Duration ;
2121
2222/// Callback to be called on the AP.
23- pub type Procedure = extern "win64 " fn ( * mut c_void ) ;
23+ pub type Procedure = extern "efiapi " fn ( * mut c_void ) ;
2424
2525bitflags ! {
2626 /// Flags indicating if the processor is BSP or AP,
@@ -94,17 +94,17 @@ pub struct CPUPhysicalLocation {
9494#[ unsafe_guid( "3fdda605-a76e-4f46-ad29-12f4531b3d08" ) ]
9595#[ derive( Protocol ) ]
9696pub struct MPServices {
97- get_number_of_processors : extern "win64 " fn (
97+ get_number_of_processors : extern "efiapi " fn (
9898 this : * const MPServices ,
9999 number_of_processors : * mut usize ,
100100 number_of_enabled_processors : * mut usize ,
101101 ) -> Status ,
102- get_processor_info : extern "win64 " fn (
102+ get_processor_info : extern "efiapi " fn (
103103 this : * const MPServices ,
104104 processor_number : usize ,
105105 processor_info_buffer : * mut ProcessorInformation ,
106106 ) -> Status ,
107- startup_all_aps : extern "win64 " fn (
107+ startup_all_aps : extern "efiapi " fn (
108108 this : * const MPServices ,
109109 procedure : Procedure ,
110110 single_thread : bool ,
@@ -113,7 +113,7 @@ pub struct MPServices {
113113 procedure_argument : * mut c_void ,
114114 failed_cpu_list : * mut * mut usize ,
115115 ) -> Status ,
116- startup_this_ap : extern "win64 " fn (
116+ startup_this_ap : extern "efiapi " fn (
117117 this : * const MPServices ,
118118 procedure : Procedure ,
119119 processor_number : usize ,
@@ -122,18 +122,18 @@ pub struct MPServices {
122122 procedure_argument : * mut c_void ,
123123 finished : * mut bool ,
124124 ) -> Status ,
125- switch_bsp : extern "win64 " fn (
125+ switch_bsp : extern "efiapi " fn (
126126 this : * const MPServices ,
127127 processor_number : usize ,
128128 enable_old_bsp : bool ,
129129 ) -> Status ,
130- enable_disable_ap : extern "win64 " fn (
130+ enable_disable_ap : extern "efiapi " fn (
131131 this : * const MPServices ,
132132 processor_number : usize ,
133133 enable_ap : bool ,
134134 health_flag : * const u32 ,
135135 ) -> Status ,
136- who_am_i : extern "win64 " fn ( this : * const MPServices , processor_number : * mut usize ) -> Status ,
136+ who_am_i : extern "efiapi " fn ( this : * const MPServices , processor_number : * mut usize ) -> Status ,
137137}
138138
139139impl MPServices {
0 commit comments