xref: /minix/minix/kernel/arch/i386/io_inw.S (revision 83133719)
1/*	inw() - Input one word				Author: Kees J. Bot */
2/*								18 Mar 1996 */
3/*	unsigned inw(U16_t port); */
4#include <machine/asm.h>
5
6ENTRY(inw)
7	push	%ebp
8	movl	%esp, %ebp
9	movl	8(%ebp), %edx	/* port */
10	xorl	%eax, %eax
11	inw	%dx	/* read 1 word */
12	pop	%ebp
13	ret
14