mailing list of musl libc
 help / color / mirror / code / Atom feed
d39bff5944d182a0180c5fa9a4e1599392ea4404 blob 1706 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
 
.section	.mdebug.abi32
.previous
.set    noreorder
.cfi_sections	.debug_frame
.abicalls
#ifdef __PIC__
	.option	pic2
#else
	.option	pic0
#endif
.text

.global __cp_begin
.hidden __cp_begin
.type   __cp_begin,@function
.global __cp_end
.hidden __cp_end
.type   __cp_end,@function
.global __cp_cancel
.hidden __cp_cancel
.type   __cp_cancel,@function
.hidden __cancel	/* long __cancel() in src/thread/pthread_cancel.c */
.global __syscall_cp_asm
.hidden __syscall_cp_asm
.type   __syscall_cp_asm,@function

/*
long __syscall_cp_asm(
	volatile int *cancel,
	syscall_arg_t nr,
	syscall_arg_t u,
	syscall_arg_t v,
	syscall_arg_t w,
	syscall_arg_t x,
	syscall_arg_t y,
	syscall_arg_t z)
*/

	.ent	__syscall_cp_asm
	.frame	$sp, 32, $ra
	.mask	0x00000000, 0
	.fmask	0x00000000, 0
	.cfi_startproc
	.cfi_return_column $ra
__syscall_cp_asm:
	subu    $sp, $sp, 32
	.cfi_adjust_cfa_offset 32
__cp_begin:
	lw      $4, 0($4)
	bne     $4, $0, __cp_cancel
	move    $2, $5
	move    $4, $6
	move    $5, $7
	lw      $6, 48($sp)
	lw      $7, 52($sp)
	lw      $8, 56($sp)
	lw      $9, 60($sp)
	lw      $10,64($sp)
	sw      $8, 16($sp)
	sw      $9, 20($sp)
	sw      $10,24($sp)
	sw      $2, 28($sp)
	lw      $2, 28($sp)
	syscall
__cp_end:
	beq     $7, $0, 1f
	addu    $sp, $sp, 32
	.cfi_adjust_cfa_offset -32
	subu    $2, $0, $2
1:	jr      $ra
	nop

__cp_cancel:
	move    $2, $ra
	.cfi_register $ra, $2
	bal     1f
	addu    $sp, $sp, 32
	.cfi_adjust_cfa_offset -32
	.gpword .
	.gpword __cancel
1:	lw      $3, ($ra)
	subu    $3, $ra, $3
	lw      $25, 4($ra)
	addu    $25, $25, $3
	jr      $25
	move    $ra, $2
	.cfi_restore $ra
#ifdef __ELF__
	.size __syscall_cp_asm,.-__syscall_cp_asm
#endif
	.end	__syscall_cp_asm
	.cfi_endproc
debug log:

solving d39bff59 ...
found d39bff59 in https://inbox.vuxu.org/musl/20200624233517.4909-2-daniel.santos@pobox.com/
found d2846264 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 d284626450f9e2f074f25fca28f89e7baf3b433a	src/thread/mips/syscall_cp.s

applying [1/1] https://inbox.vuxu.org/musl/20200624233517.4909-2-daniel.santos@pobox.com/
diff --git a/src/thread/mips/syscall_cp.s b/src/thread/mips/syscall_cp.s
index d2846264..d39bff59 100644

Checking patch src/thread/mips/syscall_cp.s...
Applied patch src/thread/mips/syscall_cp.s cleanly.

index at:
100644 d39bff5944d182a0180c5fa9a4e1599392ea4404	src/thread/mips/syscall_cp.s

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).