kern/interrupts.c
// Setup an entry in the IDT table
Setup an entry in the IDT table
Setup an entry in the IDT table
int interrupt_setup_entry(int number, size_t base, uint16_t selector, uint8_t flags) {
	idt_t *entry = &idt[number];
	entry->base_00_15 = (base & 0xFFFF);
	entry->base_16_31 = ((base >> 16) & 0xFFFF);
	entry->base_32_63 = ((base >> 32) & 0xFFFFFFFF);
	entry->selector = selector;
	entry->flags = flags;
	return 0;
}
int interrupt_setup_entry ( int number , size_t base , uint16_t selector , uint8_t flags ) { idt_t * entry = & idt [ number ] ; entry -> base_00_15 = ( base & 0xFFFF ) ; entry -> base_16_31 = ( ( base >> 16 ) & 0xFFFF ) ; entry -> base_32_63 = ( ( base >> 32 ) & 0xFFFFFFFF ) ; entry -> selector = selector ; entry -> flags = flags ; return 0 ; }
Setup an entry in the IDT table
Setup an entry in the IDT table