Deleted Added
full compact
sigsetjmp.S (267307) sigsetjmp.S (287292)
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/amd64/gen/sigsetjmp.S 267307 2014-06-09 21:35:36Z jilles $");
40__FBSDID("$FreeBSD: head/lib/libc/amd64/gen/sigsetjmp.S 287292 2015-08-29 14:25:01Z kib $");
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

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

58 testl %esi,%esi
59 jz 2f
60 pushq %rdi
61 movq %rdi,%rcx
62 movq $1,%rdi /* SIG_BLOCK */
63 movq $0,%rsi /* (sigset_t*)set */
64 leaq 72(%rcx),%rdx /* 9,10 (sigset_t*)oset */
65 /* stack is 16-byte aligned */
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

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

58 testl %esi,%esi
59 jz 2f
60 pushq %rdi
61 movq %rdi,%rcx
62 movq $1,%rdi /* SIG_BLOCK */
63 movq $0,%rsi /* (sigset_t*)set */
64 leaq 72(%rcx),%rdx /* 9,10 (sigset_t*)oset */
65 /* stack is 16-byte aligned */
66 call PIC_PLT(CNAME(_sigprocmask))
66 call __libc_sigprocmask
67 popq %rdi
682: movq %rdi,%rcx
69 movq 0(%rsp),%rdx /* retval */
70 movq %rdx, 0(%rcx) /* 0; retval */
71 movq %rbx, 8(%rcx) /* 1; rbx */
72 movq %rsp,16(%rcx) /* 2; rsp */
73 movq %rbp,24(%rcx) /* 3; rbp */
74 movq %r12,32(%rcx) /* 4; r12 */

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

86 jz 2f
87 movq %rdi,%rdx
88 pushq %rdi
89 pushq %rsi
90 movq $3,%rdi /* SIG_SETMASK */
91 leaq 72(%rdx),%rsi /* (sigset_t*)set */
92 movq $0,%rdx /* (sigset_t*)oset */
93 subq $0x8,%rsp /* make the stack 16-byte aligned */
67 popq %rdi
682: movq %rdi,%rcx
69 movq 0(%rsp),%rdx /* retval */
70 movq %rdx, 0(%rcx) /* 0; retval */
71 movq %rbx, 8(%rcx) /* 1; rbx */
72 movq %rsp,16(%rcx) /* 2; rsp */
73 movq %rbp,24(%rcx) /* 3; rbp */
74 movq %r12,32(%rcx) /* 4; r12 */

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

86 jz 2f
87 movq %rdi,%rdx
88 pushq %rdi
89 pushq %rsi
90 movq $3,%rdi /* SIG_SETMASK */
91 leaq 72(%rdx),%rsi /* (sigset_t*)set */
92 movq $0,%rdx /* (sigset_t*)oset */
93 subq $0x8,%rsp /* make the stack 16-byte aligned */
94 call PIC_PLT(CNAME(_sigprocmask))
94 call __libc_sigprocmask
95 addq $0x8,%rsp
96 popq %rsi
97 popq %rdi /* jmpbuf */
982: movq %rdi,%rdx
99 movq %rsi,%rax /* retval */
100 movq 0(%rdx),%rcx
101 movq 8(%rdx),%rbx
102 movq 16(%rdx),%rsp

--- 14 unchanged lines hidden ---
95 addq $0x8,%rsp
96 popq %rsi
97 popq %rdi /* jmpbuf */
982: movq %rdi,%rdx
99 movq %rsi,%rax /* retval */
100 movq 0(%rdx),%rcx
101 movq 8(%rdx),%rbx
102 movq 16(%rdx),%rsp

--- 14 unchanged lines hidden ---