Debian Codegraph @

third_party/rust/libc/src/unix/bsd/netbsdlike/openbsd/riscv64.rs

raw
1 use crate::prelude::*;
2
3 pub type ucontext_t = sigcontext;
4
5 s! {
6 pub struct sigcontext {
7 __sc_unused: c_int,
8 pub sc_mask: c_int,
9 pub sc_ra: c_long,
10 pub sc_sp: c_long,
11 pub sc_gp: c_long,
12 pub sc_tp: c_long,
13 pub sc_t: [c_long; 7],
14 pub sc_s: [c_long; 12],
15 pub sc_a: [c_long; 8],
16 pub sc_sepc: c_long,
17 pub sc_f: [c_long; 32],
18 pub sc_fcsr: c_long,
19 pub sc_cookie: c_long,
20 }
21 }
22
23 pub(crate) const _ALIGNBYTES: usize = mem::size_of::<c_long>() - 1;
24
25 pub const _MAX_PAGE_SHIFT: u32 = 12;