aboutsummaryrefslogtreecommitdiff
path: root/src/utils/asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/asm.h')
-rw-r--r--src/utils/asm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/asm.h b/src/utils/asm.h
index 0929afa..f92195f 100644
--- a/src/utils/asm.h
+++ b/src/utils/asm.h
@@ -7,5 +7,6 @@
#define outbj(port,value) \
asm volatile ("outb %%al, %%dx;" :: "a" (value), "d"(port) )
-
+#define inb(port,dst) \
+ asm volatile ("inb %%dx, %%al": "=a" (dst) : "d" (port))
#endif \ No newline at end of file