Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ucontext_t for aarch64-unknown-linux-musl #1863

Merged
merged 1 commit into from
Aug 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/unix/linux_like/linux/musl/b64/aarch64/align.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}