File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ impl Frame {
60
60
#[ repr( C , align( 16 ) ) ] // required by `CONTEXT`, is a FIXME in winapi right now
61
61
struct MyContext ( CONTEXT ) ;
62
62
63
- #[ cfg( target_arch = "x86_64" ) ]
63
+ #[ cfg( any ( target_arch = "x86_64" , target_arch = "arm64ec" ) ) ]
64
64
impl MyContext {
65
65
#[ inline( always) ]
66
66
fn ip ( & self ) -> DWORD64 {
@@ -122,7 +122,11 @@ impl MyContext {
122
122
}
123
123
}
124
124
125
- #[ cfg( any( target_arch = "x86_64" , target_arch = "aarch64" ) ) ]
125
+ #[ cfg( any(
126
+ target_arch = "x86_64" ,
127
+ target_arch = "aarch64" ,
128
+ target_arch = "arm64ec"
129
+ ) ) ]
126
130
#[ inline( always) ]
127
131
pub unsafe fn trace ( cb : & mut dyn FnMut ( & super :: Frame ) -> bool ) {
128
132
use core:: ptr;
Original file line number Diff line number Diff line change @@ -447,7 +447,11 @@ ffi! {
447
447
}
448
448
}
449
449
450
- #[ cfg( any( target_arch = "x86_64" , target_arch = "aarch64" ) ) ]
450
+ #[ cfg( any(
451
+ target_arch = "x86_64" ,
452
+ target_arch = "aarch64" ,
453
+ target_arch = "arm64ec"
454
+ ) ) ]
451
455
ffi ! {
452
456
#[ link( name = "kernel32" ) ]
453
457
extern "system" {
@@ -594,7 +598,7 @@ ffi! {
594
598
}
595
599
}
596
600
597
- #[ cfg( target_arch = "x86_64" ) ]
601
+ #[ cfg( any ( target_arch = "x86_64" , target_arch = "arm64ec" ) ) ]
598
602
ffi ! {
599
603
#[ repr( C , align( 8 ) ) ]
600
604
pub struct CONTEXT {
@@ -662,7 +666,7 @@ ffi! {
662
666
}
663
667
664
668
#[ repr( C ) ]
665
- #[ cfg( target_arch = "x86_64" ) ]
669
+ #[ cfg( any ( target_arch = "x86_64" , target_arch = "arm64ec" ) ) ]
666
670
#[ derive( Copy , Clone ) ]
667
671
pub struct FLOATING_SAVE_AREA {
668
672
_Dummy : [ u8 ; 512 ] ,
You can’t perform that action at this time.
0 commit comments