xref: /minix3/minix/kernel/arch/i386/io_inl.S (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1*433d6423SLionel Sambuc/*	inl() - Input one dword				Author: Kees J. Bot */
2*433d6423SLionel Sambuc/*								18 Mar 1996 */
3*433d6423SLionel Sambuc/*	unsigned inl(U16_t port); */
4*433d6423SLionel Sambuc#include <machine/asm.h>
5*433d6423SLionel Sambuc
6*433d6423SLionel SambucENTRY(inl)
7*433d6423SLionel Sambuc	push	%ebp
8*433d6423SLionel Sambuc	movl	%esp, %ebp
9*433d6423SLionel Sambuc	movl	8(%ebp), %edx	/* port */
10*433d6423SLionel Sambuc	inl	%dx	/* read 1 dword */
11*433d6423SLionel Sambuc	pop	%ebp
12*433d6423SLionel Sambuc	ret
13