summaryrefslogtreecommitdiff
path: root/os/js/iob.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/js/iob.c')
-rw-r--r--os/js/iob.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/os/js/iob.c b/os/js/iob.c
new file mode 100644
index 00000000..4873847e
--- /dev/null
+++ b/os/js/iob.c
@@ -0,0 +1,13 @@
+#include "u.h"
+
+void
+outb(ulong addr, uchar val)
+{
+ *(uchar*)addr = val;
+}
+
+uchar
+inb(ulong addr)
+{
+ return *(uchar*)addr;
+}