Skip to content
Snippets Groups Projects
Commit 8059eda1 authored by Alex Crichton's avatar Alex Crichton
Browse files

Add ucontext_t/mcontext_t for aarch64 Android

This ended up just getting copied from Linux as it appears to be the
same.
parent ac09d6df
No related branches found
No related tags found
Loading
......@@ -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