furix
cute os
include/arch/x86_64/pic.h
429 bytes raw
1#ifndef FURIX_ARCH_X86_64_PIC_H
2#define FURIX_ARCH_X86_64_PIC_H
3
4#include <types.h>
5
6/*
7 * mask all legacy 8259 PIC interrupts.
8 *
9 * interrupts route through the LAPIC once it is enabled, but the two 8259s
10 * are still unmapped at whatever vector base firmware left them at, so a stray
11 * IRQ0 (the PIT timer) arrives as a bogus vector the moment we execute STI.
12 */
13void pic_disarm(void);
14
15#endif /* FURIX_ARCH_X86_64_PIC_H */