-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #1990 - JohnTitor:arm-macos-state64, r=JohnTitor
Fix `thread_state64` on `aarch64-apple-darwin` Fixes #1977
- Loading branch information
Showing
4 changed files
with
62 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
s! { | ||
pub struct __darwin_mcontext64 { | ||
pub __es: ::__darwin_x86_exception_state64, | ||
pub __ss: __darwin_arm_thread_state64, | ||
pub __fs: ::__darwin_x86_float_state64, | ||
} | ||
|
||
pub struct __darwin_arm_thread_state64 { | ||
pub __x: [u64; 29], | ||
pub __fp: u64, | ||
pub __lr: u64, | ||
pub __sp: u64, | ||
pub __pc: u64, | ||
pub __cpsr: u32, | ||
pub __pad: u32, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
s! { | ||
pub struct __darwin_mcontext64 { | ||
pub __es: ::__darwin_x86_exception_state64, | ||
pub __ss: __darwin_x86_thread_state64, | ||
pub __fs: ::__darwin_x86_float_state64, | ||
} | ||
|
||
pub struct __darwin_x86_thread_state64 { | ||
pub __rax: u64, | ||
pub __rbx: u64, | ||
pub __rcx: u64, | ||
pub __rdx: u64, | ||
pub __rdi: u64, | ||
pub __rsi: u64, | ||
pub __rbp: u64, | ||
pub __rsp: u64, | ||
pub __r8: u64, | ||
pub __r9: u64, | ||
pub __r10: u64, | ||
pub __r11: u64, | ||
pub __r12: u64, | ||
pub __r13: u64, | ||
pub __r14: u64, | ||
pub __r15: u64, | ||
pub __rip: u64, | ||
pub __rflags: u64, | ||
pub __cs: u64, | ||
pub __fs: u64, | ||
pub __gs: u64, | ||
} | ||
} |