git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b13aae5bf1da819b51c3fbda55e94098f696eec1
[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 */