diff --git a/kernel/io.c b/kernel/io.c new file mode 100644 index 0000000..9b630ef --- /dev/null +++ b/kernel/io.c @@ -0,0 +1,10 @@ +unsigned char port_byte_in(unsigned short port) { + unsigned char res; + __asm__("in %%dx, %%al" : "=a" (res) : "d" (port)); + + return res; +} + +void port_byte_out(unsigned short port, unsigned char data) { + +} diff --git a/kernel/io.h b/kernel/io.h new file mode 100644 index 0000000..e69de29