x86_64: re-enable legacy PIC and PIT initialisation

This commit is contained in:
2024-09-17 17:48:26 +01:00
parent 3f992d84fb
commit d29b955ee8
6 changed files with 231 additions and 42 deletions

View File

@@ -10,7 +10,7 @@
#define MAX_ISR_HANDLERS 16
extern void syscall_gate();
extern void syscall_gate(void);
extern uintptr_t pf_faultptr(void);
static int_hook isr_handlers[NR_IDT_ENTRIES];
@@ -92,7 +92,7 @@ static void set_syscall_gate(uintptr_t rip)
}
#endif
static void init_pic()
static void init_pic(void)
{
// Remap the PIC
outportb(0x20, 0x11);