Struct rstubs::arch::DescriptorTablePointer
source · #[repr(C, packed(1))]pub struct DescriptorTablePointer {
pub limit: u16,
pub base: *mut u64,
}
Expand description
A pointer to a discriptor table, that can be loaded with lgdt
or lidt
.
It is used for the int::idt::InterruptDescriptorTable and gdt::GlobalDescriptorTable.
Fields§
§limit: u16
Size of the DT.
base: *mut u64
Pointer to the memory region containing the DT.
Trait Implementations§
source§impl Clone for DescriptorTablePointer
impl Clone for DescriptorTablePointer
source§fn clone(&self) -> DescriptorTablePointer
fn clone(&self) -> DescriptorTablePointer
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more