From db553d05824ae463752c8b528feac963e41d9f1c Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 6 Apr 2021 15:55:30 +0200 Subject: Add Interrupt management --- src/utils/asm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/utils/asm.h') 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 -- cgit v1.2.3