[][src]Struct sunrise_kernel::i386::gdt::MainTask

#[repr(C)]pub struct MainTask {
    pub tss: TssStruct,
    pub iopb: [u8; 8193],
}

The main TSS. See MAIN_TASK.

Fields

tss: TssStruct

TssStruct of the main task.

iopb: [u8; 8193]

Array of bits representing the io-space permissions:

Implementations

impl MainTask[src]

const fn empty() -> MainTask[src]

Creates an empty TSS.

Suitable for static declaration, the whole structure should end up in the .bss.

This means that the IOPB will be set to everything addressable.

Must be initialised by calling init.

fn init(&mut self)[src]

Fills the TSS.

The struct inherits the current task's values (except registers, which are set to 0).

IOPB is set to nothing addressable.

Trait Implementations

impl Debug for MainTask[src]

Auto Trait Implementations

impl RefUnwindSafe for MainTask

impl Send for MainTask

impl Sync for MainTask

impl Unpin for MainTask

impl UnwindSafe for MainTask

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.