Skip to content

Commit 013ab57

Browse files
committed
Auto merge of #2372 - devnexen:obsd_sigcontext_aarch64, r=semarie,JohnTitor
openbsd sigcontext for arm64
2 parents 2d0f9c8 + 95636a8 commit 013ab57

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/unix/bsd/netbsdlike/openbsd/aarch64.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
pub type c_long = i64;
22
pub type c_ulong = u64;
33
pub type c_char = u8;
4+
pub type ucontext_t = sigcontext;
5+
6+
s! {
7+
pub struct sigcontext {
8+
__sc_unused: ::c_int,
9+
pub sc_mask: ::c_int,
10+
pub sc_sp: ::c_ulong,
11+
pub sc_lr: ::c_ulong,
12+
pub sc_elr: ::c_ulong,
13+
pub sc_spsr: ::c_ulong,
14+
pub sc_x: [::c_ulong; 30],
15+
pub sc_cookie: ::c_long,
16+
}
17+
}
418

519
// should be pub(crate), but that requires Rust 1.18.0
620
cfg_if! {

0 commit comments

Comments
 (0)