Disable PIC
This commit is contained in:
1 parent
43d945b5e8
commit
b3ca9af48a
3 files changed
+28
No files matched your search
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* PIC (Programmable Interrupt Controller) functionality.
|
||||
*/
|
||||
module hulk.pic;
|
||||
|
||||
import hos.cpu;
|
||||
|
||||
struct pic
|
||||
{
|
||||
public static void initialize()
|
||||
{
|
||||
/* Disable the PIC. */
|
||||
out8(0xA1u, 0xFFu);
|
||||
out8(0x21u, 0xFFu);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user