diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-06 15:55:30 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-06 15:55:30 +0200 |
| commit | db553d05824ae463752c8b528feac963e41d9f1c (patch) | |
| tree | cbb203f46a83dc8f16ae9fe6809c6b681108e3e0 /src/utils/asm.h | |
| parent | 76c95cff93a8c4832d6276f2f51055bc91e17535 (diff) | |
Add Interrupt management
Diffstat (limited to 'src/utils/asm.h')
| -rw-r--r-- | src/utils/asm.h | 3 |
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 |
