Skip to content
Snippets Groups Projects
Unverified Commit 7a507b64 authored by Yuki Okushi's avatar Yuki Okushi Committed by GitHub
Browse files

Merge pull request #1806 from alexcrichton/aarch64-mcontet

Add ucontext_t/mcontext_t for aarch64 Android
parents fdc5cf4a 8059eda1
No related branches found
No related tags found
No related merge requests found
......@@ -5,3 +5,25 @@ s_no_extra_traits! {
priv_: [f32; 8]
}
}
s! {
pub struct ucontext_t {
pub uc_flags: ::c_ulong,
pub uc_link: *mut ucontext_t,
pub uc_stack: ::stack_t,
pub uc_sigmask: ::sigset_t,
pub uc_mcontext: mcontext_t,
}
#[repr(align(16))]
pub struct mcontext_t {
pub fault_address: ::c_ulonglong,
pub regs: [::c_ulonglong; 31],
pub sp: ::c_ulonglong,
pub pc: ::c_ulonglong,
pub pstate: ::c_ulonglong,
// nested arrays to get the right size/length while being able to
// auto-derive traits like Debug
__reserved: [[u64; 32]; 16],
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment