#[repr(C, packed)]
pub struct TaskStateSegment {
pub privilege_stack_table: [VirtAddr; 3],
pub interrupt_stack_table: [VirtAddr; 7],
pub iomap_base: u16,
// some fields omitted
}
In 64-bit mode the TSS holds information that is not
directly related to the task-switch mechanism,
but is used for finding kernel level stack
if interrupts arrive while in kernel mode.
The full 64-bit canonical forms of the stack pointers (RSP) for privilege levels 0-2.
The full 64-bit canonical forms of the interrupt stack table (IST) pointers.
The 16-bit offset to the I/O permission bit map from the 64-bit TSS base.
Creates a new TSS with zeroed privilege and interrupt stack table and a zero
iomap_base
.
Formats the value using the given formatter. Read more
Performs copy-assignment from source
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static