#[repr(C, packed)]
pub struct TaskStateSegment { pub rsp0: usize, pub rsp1: usize, pub rsp2: usize, pub ist1: u64, pub ist2: u64, pub ist3: u64, pub ist4: u64, pub ist5: u64, pub ist6: u64, pub ist7: u64, pub io_map_base: u16, /* private fields */ }
Expand description

64bit task state segment.

See Intel (R) 64 and IA-32 Architectures Software Developer’s Manual, Volume 3A: System Programming Guide, Part 1 Figure 7-11.

Fields§

§rsp0: usize§rsp1: usize§rsp2: usize§ist1: u64§ist2: u64§ist3: u64§ist4: u64§ist5: u64§ist6: u64§ist7: u64§io_map_base: u16

Implementations§

source§

impl TaskStateSegment

source

pub const fn empty() -> Self

Create a empty TaskStateSegment.

source

pub fn fill_segment_descriptor(&'static self, desc: &mut SegmentDescriptor64)

Fill the segment descriptor.

Auto Trait Implementations§

§

impl RefUnwindSafe for TaskStateSegment

§

impl Send for TaskStateSegment

§

impl Sync for TaskStateSegment

§

impl Unpin for TaskStateSegment

§

impl UnwindSafe for TaskStateSegment

Blanket Implementations§

§

impl<T> Any for Twhere T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

const: unstable§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.