twizzler_abi/arch/x86_64/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::object::MAX_SIZE;

pub mod syscall;
pub(crate) mod upcall;

#[cfg(feature = "runtime")]
pub(crate) fn new_thread_tls() -> Option<(usize, *mut u8, usize, usize)> {
    // x86_64 uses variant II for TLS
    crate::runtime::tls::tls_variant2()
}

// Max size of user addr space divided into slots of size MAX_SIZE
pub const SLOTS: usize = (1 << 47) / MAX_SIZE;

pub use upcall::XSAVE_LEN;