24#define KERNEL_CODE_SEGMENT 0x08
92#define IDT_ENTRIES 256
94void MsSleep(
unsigned int milliseconds);
108#define SendEOI Outb(0x20, 0x20)
#define PKG
Add attribute packed.
struct IdtEntry idt[IDT_ENTRIES]
void GdtSetGate(int num, u32 base, u32 limit, u8 access, u8 gran)
Set a GDT entry (descriptor)
void GdtInstall()
Initialize and load the Global Descriptor Table (GDT)
void DebugPrintIdtEntry(int i)
void VirtnetHandler(void)
void UnmaskIrq(u8 irq)
Unmask an IRQ.
void MsSleep(unsigned int milliseconds)
void IdtSetGate(u8 num, u32 base, u16 sel, u8 flags)
Set an IDT gate (entry) at given index.
void AllIdt()
Initialize and load the Interrupt Descriptor Table (IDT)
void MaskAllIrqs(void)
Mask all IRQs.
unsigned int u32
32-Bit Unsigned Int
unsigned short u16
16-Bit Unsigned Int
unsigned char u8
8-Bit Unsigned Int