clarify the purpose of this project
[nyanglibc.git] / signal / raise.shared.s
blob3b01c3fd3cab1407b7241fe5645a2aebcb986937
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl __GI_raise
9 .hidden __GI_raise
10 .type __GI_raise, @function
11 __GI_raise:
12 pushq %rbx
13 movq $-1, %r8
14 movabsq $-6442450945, %rax
15 movl %edi, %ebx
16 movl $8, %r10d
17 xorl %edi, %edi
18 subq $136, %rsp
19 leaq -120(%rsp), %r9
20 movq %rax, 8(%rsp)
21 movq %r8, 16(%rsp)
22 movq %r8, 24(%rsp)
23 movq %r8, 32(%rsp)
24 leaq 8(%rsp), %rsi
25 movq %r8, 40(%rsp)
26 movq %r8, 48(%rsp)
27 movq %r9, %rdx
28 movq %r8, 56(%rsp)
29 movq %r8, 64(%rsp)
30 movl $14, %eax
31 movq %r8, 72(%rsp)
32 movq %r8, 80(%rsp)
33 movq %r8, 88(%rsp)
34 movq %r8, 96(%rsp)
35 movq %r8, 104(%rsp)
36 movq %r8, 112(%rsp)
37 movq %r8, 120(%rsp)
38 movq %r8, 128(%rsp)
39 #APP
40 # 81 "../sysdeps/unix/sysv/linux/internal-signals.h" 1
41 syscall
43 # 0 "" 2
44 #NO_APP
45 movl $39, %ecx
46 movl %ecx, %eax
47 #APP
48 # 42 "../sysdeps/unix/sysv/linux/raise.c" 1
49 syscall
51 # 0 "" 2
52 #NO_APP
53 movq %rax, %rdi
54 movl $186, %eax
55 #APP
56 # 43 "../sysdeps/unix/sysv/linux/raise.c" 1
57 syscall
59 # 0 "" 2
60 #NO_APP
61 movl %eax, %esi
62 movl %ebx, %edx
63 movl $234, %eax
64 #APP
65 # 45 "../sysdeps/unix/sysv/linux/raise.c" 1
66 syscall
68 # 0 "" 2
69 #NO_APP
70 cmpq $-4096, %rax
71 ja .L2
72 movl %eax, %r8d
73 .L3:
74 movl $8, %r10d
75 xorl %edx, %edx
76 movq %r9, %rsi
77 movl $2, %edi
78 movl $14, %eax
79 #APP
80 # 105 "../sysdeps/unix/sysv/linux/internal-signals.h" 1
81 syscall
83 # 0 "" 2
84 #NO_APP
85 addq $136, %rsp
86 movl %r8d, %eax
87 popq %rbx
88 ret
89 .p2align 4,,10
90 .p2align 3
91 .L2:
92 movq __libc_errno@gottpoff(%rip), %rdx
93 negl %eax
94 movl %eax, %fs:(%rdx)
95 jmp .L3
96 .size __GI_raise, .-__GI_raise
97 .globl raise
98 .set raise,__GI_raise
99 .weak gsignal
100 .set gsignal,raise