Deleted Added
full compact
sigsetjmp.S (217106) sigsetjmp.S (227023)
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 217106 2011-01-07 16:08:40Z kib $");
40__FBSDID("$FreeBSD: head/lib/libc/amd64/gen/sigsetjmp.S 227023 2011-11-02 18:06:22Z 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

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

57 movl %esi,88(%rdi) /* 11; savemask */
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 */
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

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

57 movl %esi,88(%rdi) /* 11; savemask */
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 */
65 call PIC_PLT(CNAME(_sigprocmask))
66 popq %rdi
672: movq %rdi,%rcx
68 movq 0(%rsp),%rdx /* retval */
69 movq %rdx, 0(%rcx) /* 0; retval */
70 movq %rbx, 8(%rcx) /* 1; rbx */
71 movq %rsp,16(%rcx) /* 2; rsp */
72 movq %rbp,24(%rcx) /* 3; rbp */

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

85 cmpl $0,88(%rdi)
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 */
66 call PIC_PLT(CNAME(_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 */

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

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

--- 14 unchanged lines hidden ---
97 popq %rsi
98 popq %rdi /* jmpbuf */
992: movq %rdi,%rdx
100 movq %rsi,%rax /* retval */
101 movq 0(%rdx),%rcx
102 movq 8(%rdx),%rbx
103 movq 16(%rdx),%rsp
104 movq 24(%rdx),%rbp

--- 14 unchanged lines hidden ---