mailing list of musl libc
 help / color / mirror / code / Atom feed
811e18f6297c23b505d6b576c4e2e895d88fabbc blob 1107 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
 
	.set	noreorder
	.global	sigsetjmp
	.global	__sigsetjmp
	.type	sigsetjmp,@function
	.type	__sigsetjmp,@function
sigsetjmp:
__sigsetjmp:
	lui     $3, %hi(%neg(%gp_rel(sigsetjmp)))
	daddiu  $3, $3, %lo(%neg(%gp_rel(sigsetjmp)))

	# Comparing save mask with 0, if equals to 0 then 
	# sigsetjmp is equal to setjmp.
	beq     $5, $0, 1f      
	daddu   $3, $3, $25

	sd      $ra, 168($4)
	sd      $16, 176($4)

	# save base of got so that we can use it later onec we return from 'longjmp'
	sd      $3,  184($4)
	ld      $25, %got_disp(setjmp)($3)
	jalr    $25
	# Move pointer-to-sigjmp_buf (i.e. $4) to $16 and save it at '24($4)' in 'setjmp'
	# We have already saved $16 of sigsetjmp at 168($4).
	move    $16, $4

	move    $5, $2			# Return from 'setjmp' or 'longjmp'
	move    $4, $16			# Restore the pointer-to-sigjmp_buf
	ld      $ra, 168($4)	# Restore ra of sigsetjmp
	ld      $16, 176($4)	# Restore $16 of sigsetjmp
	ld      $3, 184($4)		# Restore base of got

	.hidden __sigsetjmp_tail
	ld      $25, %got_disp(__sigsetjmp_tail)($3)
	jr      $25
	nop
1:
	ld      $25, %got_disp(setjmp)($3)
	jr      $25
	nop
debug log:

solving 811e18f ...
found 811e18f in https://inbox.vuxu.org/musl/BD7773622145634B952E5B54ACA8E349AA2444A6@PUMAIL01.pu.imgtec.org/ ||
	https://inbox.vuxu.org/musl/DE16056458B9894F9D46202EC1BBB28B3BE15ED6@PUMAIL01.pu.imgtec.org/

applying [1/2] https://inbox.vuxu.org/musl/BD7773622145634B952E5B54ACA8E349AA2444A6@PUMAIL01.pu.imgtec.org/
diff --git a/src/signal/mips64/sigsetjmp.s b/src/signal/mips64/sigsetjmp.s
new file mode 100644
index 0000000..811e18f

1:17: trailing whitespace.
	# Comparing save mask with 0, if equals to 0 then 
1:19: trailing whitespace.
	beq     $5, $0, 1f      
Checking patch src/signal/mips64/sigsetjmp.s...
Applied patch src/signal/mips64/sigsetjmp.s cleanly.
warning: 2 lines add whitespace errors.

skipping https://inbox.vuxu.org/musl/DE16056458B9894F9D46202EC1BBB28B3BE15ED6@PUMAIL01.pu.imgtec.org/ for 811e18f
index at:
100644 811e18f6297c23b505d6b576c4e2e895d88fabbc	src/signal/mips64/sigsetjmp.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).