git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add back the missing reserved field in FADT.
[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 */