. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git] / lib / i86 / misc / io_outl.s
blob81200eda57dd532cfeca875b0d8e7016e3accb18
1 ! outl() - Output one dword Author: Kees J. Bot
2 ! 18 Mar 1996
3 ! void outl(U16_t port, u32_t value);
5 o32 = 0x66
7 .sect .text
8 .define _outl
9 _outl:
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 mov ax, 4+2(bp) ! value
17 .data1 o32
18 out dx ! output 1 dword
19 popf
20 pop bp
21 ret