pub fn new(
		handler: VAddr,
		gdt_code_selector: SegmentSelector,
		dpl: Ring,
		ty: Type,
		ist_index: u8,
	) -> IdtEntry {
		assert!(ist_index < 0b1000);
		IdtEntry {
			base_lo: ((handler.as_usize() as u64) & 0xFFFF) as u16,
			base_hi: handler.as_usize() as u64 >> 16,
			selector: gdt_code_selector,
			ist_index: ist_index,
			flags: dpl as u8 | ty.pack() | (1 << 7),
			reserved1: 0,
		}
	}
/// Create a new IdtEntry pointing at `handler`, which must be a function
/// with interrupt calling conventions.  (This must be currently defined in
/// assembly language.)  The `gdt_code_selector` value must be the offset of
/// code segment entry in the GDT.
///
/// The "Present" flag set, which is the most common case.  If you need
/// something else, you can construct it manually.
Create a new IdtEntry pointing at `handler`, which must be a function
with interrupt calling conventions.  (This must be currently defined in
assembly language.)  The `gdt_code_selector` value must be the offset of
code segment entry in the GDT.

The "Present" flag set, which is the most common case.  If you need
something else, you can construct it manually.
Create a new IdtEntry pointing at ` handler ` which must be a function with interrupt calling conventions . ( This must be currently defined in assembly language . ) The ` gdt_code_selector ` value must be the offset of code segment entry in the GDT . The " Present " flag set which is the most common case . If you need something else you can construct it manually .
pub fn new(
		handler: VAddr,
		gdt_code_selector: SegmentSelector,
		dpl: Ring,
		ty: Type,
		ist_index: u8,
	) -> IdtEntry {
		assert!(ist_index < 0b1000);
		IdtEntry {
			base_lo: ((handler.as_usize() as u64) & 0xFFFF) as u16,
			base_hi: handler.as_usize() as u64 >> 16,
			selector: gdt_code_selector,
			ist_index: ist_index,
			flags: dpl as u8 | ty.pack() | (1 << 7),
			reserved1: 0,
		}
	}
pub fn new ( handler : VAddr , gdt_code_selector : SegmentSelector , dpl : Ring , ty : Type , ist_index : u8 , ) -> IdtEntry { assert ! ( ist_index 0b1000 ) ; IdtEntry { base_lo : ( ( handler . as_usize ( ) as u64 ) & 0xFFFF ) as u16 , base_hi : handler . as_usize ( ) as u64 >> 16 , selector : gdt_code_selector , ist_index : ist_index , flags : dpl as u8 | ty . pack ( ) | ( 1 << 7 ) , reserved1 : 0 , } }
Create a new IdtEntry pointing at `handler`, which must be a function
with interrupt calling conventions.
Create a new IdtEntry pointing at ` handler ` which must be a function with interrupt calling conventions .
handler
VAddr
gdt_code_selector
SegmentSelector
dpl
Ring
ty
Type
ist_index
u8
handler
VAddr
gdt_code_selector
SegmentSelector
dpl
Ring
ty
Type
ist_index
u8