diff options
| author | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-08-05 14:33:51 +0200 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-08-05 14:33:51 +0200 |
| commit | bd7d4366b6643b5c6cd04f40dd32f5d9c9575fd6 (patch) | |
| tree | 92429e897be007d46c8f063a39a986df2124111a /kernel/io.c | |
| parent | be3274c49d0ca5e31daa855c4c109d830fdead67 (diff) | |
organised files; switched to recursive make
Diffstat (limited to 'kernel/io.c')
| -rw-r--r-- | kernel/io.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/kernel/io.c b/kernel/io.c deleted file mode 100644 index 6bf67d0..0000000 --- a/kernel/io.c +++ /dev/null @@ -1,13 +0,0 @@ -#include <stdint.h> - -uint8_t inb(uint32_t port) -{ - uint8_t ret; - __asm__ volatile ("inb %%dx, %%al" : "=a"(ret) : "d"(port)); - return ret; -} - -void outb(uint32_t port, uint8_t value) -{ - __asm__ volatile ("outb %%al, %%dx" : : "d"(port), "a"(value)); -} |
