. service tells you which device it couldn't stat
[minix3.git] / lib / i386 / em / em_cfi.s
blob900f4e5f3e497885e471a6ae8bf29ac7808705a8
1 .sect .text; .sect .rom; .sect .data; .sect .bss
2 .define .cfi
4 .sect .text
5 .cfi:
6 mov bx,sp
7 fstcw 4(bx)
8 wait
9 mov dx,4(bx)
10 or 4(bx),0xc00 ! truncating mode
11 wait
12 fldcw 4(bx)
13 cmp 8(bx),4
14 jne 2f
15 ! loc 4 loc ? cfi
16 flds 12(bx)
17 fistpl 12(bx)
19 mov 4(bx),dx
20 wait
21 fldcw 4(bx)
22 ret
24 ! loc 8 loc ? cfi
25 fldd 12(bx)
26 fistpl 16(bx)
27 jmp 1b