. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git] / lib / i86 / misc / io_inl.s
blob4dab9a33df6d5cfce72cf60ae2445c493de7bf6e
1 ! inl() - Input one dword Author: Kees J. Bot
2 ! 18 Mar 1996
3 ! unsigned inl(U16_t port);
5 o32 = 0x66
7 .sect .text
8 .define _inl
9 _inl:
10 push bp
11 mov bp, sp
12 pushf
13 cli ! eax is not interrupt safe
14 mov dx, 4(bp) ! port
15 .data1 o32
16 in dx ! read 1 dword
17 .data1 o32
18 push ax ! push eax
19 pop ax
20 pop dx ! dx:ax = eax
21 popf
22 pop bp
23 ret