Function segment_from_gdt

Source
pub fn segment_from_gdt(entry: u64, table_index: u8) -> Segment
Expand description

Automatically build the hypervisor Segment struct for set_sregs from the kernel bit fields.

ยงArguments

  • entry - The gdt entry.
  • table_index - Index of the entry in the gdt table.