Skip to content

Commit

Permalink
arm64ec
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaoliello committed Mar 7, 2024
1 parent 0249531 commit bf62a93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/backtrace/dbghelp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl Frame {
#[repr(C, align(16))] // required by `CONTEXT`, is a FIXME in winapi right now
struct MyContext(CONTEXT);

#[cfg(target_arch = "x86_64")]
#[cfg(any(target_arch = "x86_64", target_arch = "arm64ec"))]
impl MyContext {
#[inline(always)]
fn ip(&self) -> DWORD64 {
Expand Down Expand Up @@ -122,7 +122,7 @@ impl MyContext {
}
}

#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "arm64ec"))]
#[inline(always)]
pub unsafe fn trace(cb: &mut dyn FnMut(&super::Frame) -> bool) {
use core::ptr;
Expand Down
6 changes: 3 additions & 3 deletions src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ ffi! {
}
}

#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "arm64ec"))]
ffi! {
#[link(name = "kernel32")]
extern "system" {
Expand Down Expand Up @@ -594,7 +594,7 @@ ffi! {
}
}

#[cfg(target_arch = "x86_64")]
#[cfg(any(target_arch = "x86_64", target_arch = "arm64ec"))]
ffi! {
#[repr(C, align(8))]
pub struct CONTEXT {
Expand Down Expand Up @@ -662,7 +662,7 @@ ffi! {
}

#[repr(C)]
#[cfg(target_arch = "x86_64")]
#[cfg(any(target_arch = "x86_64", target_arch = "arm64ec"))]
#[derive(Copy, Clone)]
pub struct FLOATING_SAVE_AREA {
_Dummy: [u8; 512],
Expand Down

0 comments on commit bf62a93

Please sign in to comment.