Deleted Added
full compact
sigsetjmp.S (165903) sigsetjmp.S (184548)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 23 unchanged lines hidden (view full) ---

32 * @(#)setjmp.s 5.1 (Berkeley) 4/23/90"
33 */
34
35#if defined(LIBC_SCCS) && !defined(lint)
36 .text
37 .asciz "$Id: sigsetjmp.S,v 1.1 1993/12/05 13:01:05 ats Exp $"
38#endif /* LIBC_SCCS and not lint */
39#include <machine/asm.h>
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 23 unchanged lines hidden (view full) ---

32 * @(#)setjmp.s 5.1 (Berkeley) 4/23/90"
33 */
34
35#if defined(LIBC_SCCS) && !defined(lint)
36 .text
37 .asciz "$Id: sigsetjmp.S,v 1.1 1993/12/05 13:01:05 ats Exp $"
38#endif /* LIBC_SCCS and not lint */
39#include <machine/asm.h>
40__FBSDID("$FreeBSD: head/lib/libc/i386/gen/sigsetjmp.S 165903 2007-01-09 00:28:16Z imp $");
40__FBSDID("$FreeBSD: head/lib/libc/i386/gen/sigsetjmp.S 184548 2008-11-02 01:28:47Z peter $");
41
42#include "SYS.h"
43
44/*-
45 * TODO:
46 * Rename sigsetjmp to __sigsetjmp and siglongjmp to __siglongjmp,
47 * remove the other *jmp functions and define everything in terms
48 * of the renamed functions. This requires compiler support for

--- 24 unchanged lines hidden (view full) ---

73 movl %ebx, 4(%ecx)
74 movl %esp, 8(%ecx)
75 movl %ebp,12(%ecx)
76 movl %esi,16(%ecx)
77 movl %edi,20(%ecx)
78 fnstcw 24(%ecx)
79 xorl %eax,%eax
80 ret
41
42#include "SYS.h"
43
44/*-
45 * TODO:
46 * Rename sigsetjmp to __sigsetjmp and siglongjmp to __siglongjmp,
47 * remove the other *jmp functions and define everything in terms
48 * of the renamed functions. This requires compiler support for

--- 24 unchanged lines hidden (view full) ---

73 movl %ebx, 4(%ecx)
74 movl %esp, 8(%ecx)
75 movl %ebp,12(%ecx)
76 movl %esi,16(%ecx)
77 movl %edi,20(%ecx)
78 fnstcw 24(%ecx)
79 xorl %eax,%eax
80 ret
81END(sigsetjmp)
81
82 .weak CNAME(siglongjmp);
82
83 .weak CNAME(siglongjmp);
83 .set CNAME(siglongjmp),CNAME(__siglongjmp);
84ENTRY(__siglongjmp);
84 .set CNAME(siglongjmp),CNAME(__siglongjmp)
85ENTRY(__siglongjmp)
85 movl 4(%esp),%edx
86 cmpl $0,44(%edx)
87 jz 2f
88 PIC_PROLOGUE
89 pushl $0 /* (sigset_t*)oset */
90 leal 28(%edx), %eax
91 pushl %eax /* (sigset_t*)set */
92 pushl $3 /* SIG_SETMASK */

--- 10 unchanged lines hidden (view full) ---

103 movl 20(%edx),%edi
104 fninit
105 fldcw 24(%edx)
106 testl %eax,%eax
107 jnz 1f
108 incl %eax
1091: movl %ecx,0(%esp)
110 ret
86 movl 4(%esp),%edx
87 cmpl $0,44(%edx)
88 jz 2f
89 PIC_PROLOGUE
90 pushl $0 /* (sigset_t*)oset */
91 leal 28(%edx), %eax
92 pushl %eax /* (sigset_t*)set */
93 pushl $3 /* SIG_SETMASK */

--- 10 unchanged lines hidden (view full) ---

104 movl 20(%edx),%edi
105 fninit
106 fldcw 24(%edx)
107 testl %eax,%eax
108 jnz 1f
109 incl %eax
1101: movl %ecx,0(%esp)
111 ret
112END(__siglongjmp)