8fdcd040e860c982e34915620d2f5087568f9a65
[lunaix-os.git] / lunaix-os / includes / hal / pic.h
1 #ifndef __LUNAIX_PIC_H
2 #define __LUNAIX_PIC_H
3 // FUTURE: Full PIC implementation for fall back when no APIC is detected.
4
5 static inline void
6 pic_disable()
7 {
8     // ref: https://wiki.osdev.org/8259_PIC
9     asm volatile ("movb $0xff, %al\n"
10         "outb %al, $0xa1\n"
11         "outb %al, $0x21\n");
12 }
13
14 #endif /* __LUNAIX_PIC_H */