Skip to content

Commit a0f5b4b

Browse files
authored
Merge pull request rust-lang#3605 from heiher/loongarch64-musl
linux/musl: Add support for LoongArch64
2 parents 7d6a090 + c90efd9 commit a0f5b4b

File tree

4 files changed

+714
-1
lines changed

4 files changed

+714
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
s_no_extra_traits! {
2+
#[allow(missing_debug_implementations)]
3+
#[repr(align(16))]
4+
pub struct max_align_t {
5+
priv_: [f64; 4]
6+
}
7+
}
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+
pub __pc: ::c_ulonglong,
21+
pub __gregs: [::c_ulonglong; 32],
22+
pub __flags: ::c_uint,
23+
pub __extcontext: [::c_ulonglong; 0],
24+
}
25+
26+
#[repr(align(8))]
27+
pub struct clone_args {
28+
pub flags: ::c_ulonglong,
29+
pub pidfd: ::c_ulonglong,
30+
pub child_tid: ::c_ulonglong,
31+
pub parent_tid: ::c_ulonglong,
32+
pub exit_signal: ::c_ulonglong,
33+
pub stack: ::c_ulonglong,
34+
pub stack_size: ::c_ulonglong,
35+
pub tls: ::c_ulonglong,
36+
pub set_tid: ::c_ulonglong,
37+
pub set_tid_size: ::c_ulonglong,
38+
pub cgroup: ::c_ulonglong,
39+
}
40+
}

0 commit comments

Comments
 (0)