Skip to content

Commit 2259b0b

Browse files
committed
Add ucontext_t for aarch64-unknown-linux-musl
1 parent 83b3730 commit 2259b0b

File tree

1 file changed

+18
-0
lines changed
  • src/unix/linux_like/linux/musl/b64/aarch64

1 file changed

+18
-0
lines changed

src/unix/linux_like/linux/musl/b64/aarch64/align.rs

+18
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,21 @@ s_no_extra_traits! {
55
priv_: [f32; 8]
66
}
77
}
8+
9+
s!{
10+
pub struct ucontext_t {
11+
pub uc_flags: ::c_ulong,
12+
pub uc_link: *mut ucontext_t,
13+
pub uc_stack: ::stack_t,
14+
pub uc_sigmask: ::sigset_t,
15+
pub uc_mcontext: mcontext_t,
16+
}
17+
18+
#[repr(align(16))]
19+
pub struct mcontext_t {
20+
// What we want here is a single [u64; 36 + 512], but splitting things
21+
// up allows Debug to be auto-derived.
22+
__regs1: [[u64; 18]; 2], // 36
23+
__regs2: [[u64; 32]; 16], // 512
24+
}
25+
}

0 commit comments

Comments
 (0)