FENIX_libc/arch/i386/outb.c

10 lines
197 B
C
Raw Normal View History

2020-12-18 18:39:04 +00:00
#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));
}