. service tells you which device it couldn't stat
[minix3.git] / lib / i386 / em / em_csa4.s
blobf90245062a304d72378db41cee34d6f4a6c778ea
1 .sect .text; .sect .rom; .sect .data; .sect .bss
2 .define .csa4
4 .sect .text
5 .csa4:
6 ! ebx, descriptor address
7 ! eax, index
8 mov edx,(ebx) ! default
9 sub eax,4(ebx)
10 cmp eax,8(ebx)
11 ja 1f
12 sal eax,2
13 add ebx,eax
14 mov ebx,12(ebx)
15 test ebx,ebx
16 jnz 2f
18 mov ebx,edx
19 test ebx,ebx
20 jnz 2f
21 .extern ECASE
22 .extern .fat
23 mov eax,ECASE
24 push eax
25 jmp .fat
27 jmp ebx