Function x86_64::gdt::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.