mailing list of musl libc
 help / color / mirror / code / Atom feed
e860c47be34abf5e33839abf22e092ea76d5386a blob 934 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
 
.global sigsetjmp
.global __sigsetjmp
.type   sigsetjmp,@function
.type   __sigsetjmp,@function
sigsetjmp:
__sigsetjmp:
        or $t5, $a0, $zero
        or $t6, $a1, $zero

        # comparing save mask with 0, if equals to 0 then
        # sigsetjmp is equal to setjmp.
        beq     $t6, $zero, 1f
        st.d    $ra, $t5, 160
        st.d    $s0, $t5, 168

        # save base of got so that we can use it later
        # once we return from 'longjmp'
        la.global       $t8, setjmp
        or      $s0, $a0, $zero
        jirl    $ra, $t8, 0

        or      $v1, $v0, $zero         # Return from 'setjmp' or 'longjmp'
        ld.d    $ra, $t5, 160   # Restore ra of sigsetjmp
        ld.d    $s0, $t5, 168   # Restore $s0 of sigsetjmp
        or      $a0, $t5, $zero

.hidden __sigsetjmp_tail
        la.global       $t8, __sigsetjmp_tail
        jr      $t8
1:
        la.global       $t8, setjmp
        jr      $t8

debug log:

solving e860c47b ...
found e860c47b in https://inbox.vuxu.org/musl/631a1416.5853.17a3dd4c129.Coremail.zhaixiaojuan@loongson.cn/ ||
	https://inbox.vuxu.org/musl/43a660d5.58ae.17a3df462b9.Coremail.zhaixiaojuan@loongson.cn/

applying [1/2] https://inbox.vuxu.org/musl/631a1416.5853.17a3dd4c129.Coremail.zhaixiaojuan@loongson.cn/
diff --git a/src/signal/loongarch64/sigsetjmp.s b/src/signal/loongarch64/sigsetjmp.s
new file mode 100644
index 00000000..e860c47b

Checking patch src/signal/loongarch64/sigsetjmp.s...
1:39: new blank line at EOF.
+
Applied patch src/signal/loongarch64/sigsetjmp.s cleanly.
warning: 1 line adds whitespace errors.

skipping https://inbox.vuxu.org/musl/43a660d5.58ae.17a3df462b9.Coremail.zhaixiaojuan@loongson.cn/ for e860c47b
index at:
100644 e860c47be34abf5e33839abf22e092ea76d5386a	src/signal/loongarch64/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).