mailing list of musl libc
 help / color / mirror / code / Atom feed
2b9f456302384fa742b4e1111e5cf4378b6c6677 blob 1249 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
 
.set    noreorder

.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
.global __cp_cancel_data
.hidden __cp_cancel_data
.type   __cp_cancel_data,@function
.hidden __cancel
.global __syscall_cp_asm
.hidden __syscall_cp_asm
.type   __syscall_cp_asm,@function
__syscall_cp_asm:
__cp_begin:
	lw	$4, 0($4)
	bne	$4, $0, __cp_cancel    # __syscall_cp_asm has 8 arguments and $4 will contain the  
        			       # cancellation flag and $5 is syscall number and passing remaining 
        			       # 6 arguments to _cancel system call
	move	$2, $5
	move	$4, $6
        move	$5, $7
        move	$6, $8
        move	$7, $9
        move	$8, $10
        move	$9, $11
        ld	$10, 0($sp)
	syscall
__cp_end:
	beq	$7, $0, 1f             # checking for summary overflow
	nop
	dsubu	$2, $0, $2
1:	jr	$ra
	nop
__cp_cancel:				# if cancellation flag is 1 then call __cancel
	move	$2, $ra
.align 8
	bal	1f
	nop
__cp_cancel_data:	
        .gpdword __cp_cancel_data
        .gpdword __cancel
1:      ld	$3, ($ra)
        dsubu	$3, $ra, $3
        ld      $25, 8($ra)
        daddu	$25, $25, $3
	jr	$25
	move	$ra, $2	
debug log:

solving 2b9f456 ...
found 2b9f456 in https://inbox.vuxu.org/musl/DE16056458B9894F9D46202EC1BBB28B3BE15ED6@PUMAIL01.pu.imgtec.org/

applying [1/1] https://inbox.vuxu.org/musl/DE16056458B9894F9D46202EC1BBB28B3BE15ED6@PUMAIL01.pu.imgtec.org/
diff --git a/src/thread/mips64/syscall_cp.s b/src/thread/mips64/syscall_cp.s
new file mode 100644
index 0000000..2b9f456

1:28: trailing whitespace.
	bne	$4, $0, __cp_cancel    # __syscall_cp_asm has 8 arguments and $4 will contain the  
1:29: trailing whitespace, space before tab in indent.
        			       # cancellation flag and $5 is syscall number and passing remaining 
1:30: space before tab in indent.
        			       # 6 arguments to _cancel system call
1:51: trailing whitespace.
__cp_cancel_data:	
1:59: trailing whitespace.
	move	$ra, $2	
Checking patch src/thread/mips64/syscall_cp.s...
Applied patch src/thread/mips64/syscall_cp.s cleanly.
warning: 5 lines add whitespace errors.

index at:
100644 2b9f456302384fa742b4e1111e5cf4378b6c6677	src/thread/mips64/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).