mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 11:18:30 +00:00
Make minor improvements
This commit is contained in:
parent
1fc91f3580
commit
b562d6fdb3
41 changed files with 1948 additions and 92 deletions
|
@ -34,20 +34,15 @@
|
|||
__sigenter:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
push %rbx
|
||||
push %rbx
|
||||
ezlea _base,bx
|
||||
.profilable
|
||||
ezlea g_sighandrvas,ax
|
||||
and $NSIG-1,%edi
|
||||
mov (%rax,%rdi,4),%eax
|
||||
mov g_sighandrvas(,%rdi,4),%eax
|
||||
cmp $kSigactionMinRva,%eax
|
||||
jl 2f
|
||||
add %rbx,%rax
|
||||
lea _base(%rax),%eax
|
||||
call *%rax
|
||||
mov $1,%eax
|
||||
1: pop %rbx
|
||||
leave
|
||||
1: leave
|
||||
ret
|
||||
2: xor %eax,%eax
|
||||
jmp 1b
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue