Add ucontext_t for aarch64-unknown-linux-musl

This commit is contained in:
Isaac Freund 2020-08-16 15:55:06 +02:00
parent 83b3730444
commit 2259b0b154
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11
1 changed files with 18 additions and 0 deletions

View File

@ -5,3 +5,21 @@ 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 {
// What we want here is a single [u64; 36 + 512], but splitting things
// up allows Debug to be auto-derived.
__regs1: [[u64; 18]; 2], // 36
__regs2: [[u64; 32]; 16], // 512
}
}