summaryrefslogtreecommitdiffstats
path: root/kernel/i386.h
blob: 14f89b7b74b4ad249c5864220f4950aa19d702de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef KERNEL_I386
#define KERNEL_I386

static inline void outb(uint16_t port, uint8_t data)
{
	asm volatile (
		"out %0,%1"
		: /* no output */
		: "a" (data), "d" (port)
	);
}

#endif /* KERNEL_I386 */