twizzler_abi/arch/x86_64/
mod.rs

1use crate::object::MAX_SIZE;
2
3pub mod syscall;
4pub(crate) mod upcall;
5
6// Max size of user addr space divided into slots of size MAX_SIZE
7pub const SLOTS: usize = (1 << 47) / MAX_SIZE;
8
9use upcall::UpcallFrame;
10pub use upcall::XSAVE_LEN;
11
12#[derive(Clone, Copy, Debug)]
13pub struct ArchRegisters {
14    pub frame: UpcallFrame,
15    pub fs: u32,
16    pub gs: u32,
17    pub es: u32,
18    pub ds: u32,
19    pub ss: u32,
20    pub cs: u32,
21}