. service tells you which device it couldn't stat
[minix3.git] / lib / gnu / rts / __setjmp.gs
blob36419951b26a7b55374e591977484442c3d41cc9
1 / __setjmp.gnu.s
3 / Created:      Oct 14, 1993 by Philip Homburg <philip@cs.vu.nl>
5 .text
6 .globl ___setjmp
7 ___setjmp:
8         movl    4(%esp), %eax           # jmp_buf
9         movl    %edx, 28(%eax)          # save edx
10         movl    0(%esp), %edx
11         movl    %edx, 8(%eax)           # save program counter
12         movl    %esp, 12(%eax)          # save stack pointer
13         movl    %ebp, 16(%eax)          # save frame pointer
14         movl    %ebx, 20(%eax)
15         movl    %ecx, 24(%eax)
16         movl    %esi, 32(%eax)
17         movl    %edi, 36(%eax)
18         
19         movl    8(%esp), %edx           # save mask?
20         movl    %edx, 0(%eax)           # save whether to restore mask
21         testl   %edx, %edx
22         jz              1f
23         leal    4(%eax), %edx           # pointer to sigset_t
24         pushl   %edx
25         call    ___newsigset            # save mask     
26         addl    $4, %esp
28         movl    $0, %eax
29         ret
31 / $PchId: __setjmp.gnu.s,v 1.4 1996/03/12 19:30:54 philip Exp $