interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / libc / src / unix / bsd / netbsdlike / openbsd / riscv64.rs

25 lines · 590 bytes Raw Blame History
1use crate::prelude::*;
2
3pub type ucontext_t = sigcontext;
4
5s! {
6 pub struct sigcontext {
7 __sc_unused: Padding<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
23pub(crate) const _ALIGNBYTES: usize = size_of::<c_long>() - 1;
24
25pub const _MAX_PAGE_SHIFT: u32 = 12;