提交 532cd3a7 编写于 作者: R Rich Felker

sigsetjmp asm for mips

上级 e1e4d6b2
.set noreorder
.global sigsetjmp
.type sigsetjmp,@function
sigsetjmp:
lui $gp, %hi(_gp_disp)
addiu $gp, %lo(_gp_disp)
beq $5, $0, 1f
addu $gp, $gp, $25
subu $sp, $sp, 32
sw $4, 20($sp)
sw $ra, 24($sp)
sw $gp, 28($sp)
addu $6, $4, 124
li $5, 0
li $4, 1
sw $4, -4($6)
lw $25, %call16(sigprocmask)($gp)
jalr $25
nop
lw $gp, 28($sp)
lw $ra, 24($sp)
lw $4, 20($sp)
addu $sp, $sp, 32
1: lw $25, %call16(setjmp)($gp)
jr $25
nop
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册