[feat] 100Hz task switch

This commit is contained in:
2026-05-31 18:35:25 +08:00
Unverified
parent 4ff227bc75
commit daccb0a763
16 changed files with 1172 additions and 36 deletions
+20
View File
@@ -0,0 +1,20 @@
#pragma once
#include <efi.h>
// 8259 PIC ports
#define PIC1_CMD 0x20
#define PIC1_DATA 0x21
#define PIC2_CMD 0xA0
#define PIC2_DATA 0xA1
// PIC vectors
#define PIC_IRQ_BASE 0x20 // IRQ 0 mapped to vector 0x20 (32)
// EOI signal
#define PIC_EOI 0x20
void pic_init(void);
void pic_send_eoi(UINT8 irq);
void pic_mask_irq(UINT8 irq);
void pic_unmask_irq(UINT8 irq);