x86 0.8.0

Library to program x86 (amd64) hardware. Contains x86 specific data structure descriptions, data-tables, as well as convenience function to call assembly instructions typically not exposed in higher level languages.

Struct x86::shared::dtables::DescriptorTablePointer [] [src]

pub struct DescriptorTablePointer<Entry> {
    pub limit: u16,
    pub base: *const Entry,
}

A struct describing a pointer to a descriptor table (GDT / IDT). This is in a format suitable for giving to 'lgdt' or 'lidt'.

Fields

limit: u16

Size of the DT.

base: *const Entry

Pointer to the memory region containing the DT.

Methods

impl DescriptorTablePointer<SegmentDescriptor>
[src]

fn new_gdtp(gdt: &[SegmentDescriptor]) -> Self

fn new_ldtp(ldt: &[SegmentDescriptor]) -> Self

impl DescriptorTablePointer<IdtEntry>
[src]

fn new_idtp(idt: &[IdtEntry]) -> Self

Trait Implementations

impl<Entry: Debug> Debug for DescriptorTablePointer<Entry>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.