commit | 9b3584bd27e29c8966ab90a70bf8b9e02a46e900 | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Thu Feb 18 13:57:27 2021 -0800 |
committer | swissChili <swisschili@fastmail.com> | Thu Feb 18 13:57:27 2021 -0800 |
tree | b8936fd9dc458bfd139eec0f5cbb04aa845b8d12 | |
parent | 0b35bf237b190ccfbdb9e71cd7057c03c880ad48 [diff] [blame] |
Initialize PIC
diff --git a/src/io.h b/src/io.h new file mode 100644 index 0000000..ab5ce4a --- /dev/null +++ b/src/io.h
@@ -0,0 +1,12 @@ +#pragma once + +#include "kint.h" + +void outb(ushort port, uchar val); +uchar inb(ushort port); +ushort inw(ushort port); + +void *memset(void *s, int c, size_t n); +void *memcpy(void *dest, const void *src, size_t n); + +void io_wait();