FENIX_libc/arch/i386/outb.c
2020-12-18 12:39:04 -06:00

10 lines
No EOL
197 B
C

#include <sys/io.h>
/*
This was also practically lifted
from musl.
-Kat
*/
void outb(unsigned char val, unsigned short port) {
__asm__ volatile("outb %0,%1" : : "a" (val), "dN" (port));
}