Commit 8785968 1 parent 15c85e2 commit 8785968 Copy full SHA for 8785968
File tree 2 files changed +10
-8
lines changed
td-shim/src/bin/td-shim/asm
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ use core::arch::global_asm;
5
5
6
6
global_asm ! ( include_str!( "msr64.asm" ) ) ;
7
7
8
- #[ cfg( not ( feature = "tdvmcall" ) ) ]
8
+ #[ cfg( feature = "tdvmcall" ) ]
9
9
global_asm ! ( include_str!( "exception.asm" ) ) ;
10
10
#[ cfg( not( feature = "tdvmcall" ) ) ]
11
- global_asm ! ( include_str!( "ap_loop_notdvmcall.asm" ) ) ;
12
-
13
- #[ cfg( feature = "tdvmcall" ) ]
14
11
global_asm ! ( include_str!( "exception_notdvmcall.asm" ) ) ;
12
+
15
13
#[ cfg( feature = "tdvmcall" ) ]
16
14
global_asm ! ( include_str!( "ap_loop.asm" ) ) ;
15
+ #[ cfg( not( feature = "tdvmcall" ) ) ]
16
+ global_asm ! ( include_str!( "ap_loop_notdvmcall.asm" ) ) ;
17
17
18
18
extern "C" {
19
19
fn ap_relocated_func ( ) ;
Original file line number Diff line number Diff line change 4
4
use core:: arch:: global_asm;
5
5
use core:: ffi:: c_void;
6
6
7
- #[ cfg( feature = "use_tdx_emulation" ) ]
7
+ #[ cfg( all ( feature = "use_tdx_emulation" , feature = "tdcall" ) ) ]
8
8
global_asm ! ( include_str!( "tdcall_emu.asm" ) ) ;
9
9
10
- #[ cfg( feature = "use_tdx_emulation" ) ]
10
+ #[ cfg( all ( feature = "use_tdx_emulation" , feature = "tdvmcall" ) ) ]
11
11
global_asm ! ( include_str!( "tdvmcall_emu.asm" ) ) ;
12
12
13
- #[ cfg( not( feature = "use_tdx_emulation" ) ) ]
13
+ #[ cfg( all ( not( feature = "use_tdx_emulation" ) , feature = "tdcall ") ) ]
14
14
global_asm ! ( include_str!( "tdcall.asm" ) ) ;
15
15
16
- #[ cfg( not( feature = "use_tdx_emulation" ) ) ]
16
+ #[ cfg( all ( not( feature = "use_tdx_emulation" ) , feature = "tdvmcall ") ) ]
17
17
global_asm ! ( include_str!( "tdvmcall.asm" ) ) ;
18
18
19
19
extern "win64" {
20
+ #[ cfg( feature = "tdcall" ) ]
20
21
pub ( crate ) fn asm_td_call ( args : * mut c_void ) -> u64 ;
22
+ #[ cfg( feature = "tdvmcall" ) ]
21
23
pub ( crate ) fn asm_td_vmcall ( args : * mut c_void , do_sti : u64 ) -> u64 ;
22
24
}
You can’t perform that action at this time.
0 commit comments