mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
hppa: Simplify handling of sanity check errors in clone.S.
This simplifies the handling of sanity check errors in clone.S. Adjusted a couple of comments to reflect current code. Signed-off-by: John David Anglin <dave.anglin@bell.net>
This commit is contained in:
parent
9bdb1487c5
commit
325db5ab7f
1 changed files with 5 additions and 6 deletions
|
@ -90,6 +90,10 @@ ENTRY(__clone)
|
||||||
comib,=,n 0, %ret0, .LthreadStart
|
comib,=,n 0, %ret0, .LthreadStart
|
||||||
bv,n %r0(%rp)
|
bv,n %r0(%rp)
|
||||||
|
|
||||||
|
.LerrorSanity:
|
||||||
|
/* Sanity checks failed, set errno to EINVAL. */
|
||||||
|
ldi -EINVAL, %ret0
|
||||||
|
|
||||||
.LerrorRest:
|
.LerrorRest:
|
||||||
/* Something bad happened -- no child created -- need a frame */
|
/* Something bad happened -- no child created -- need a frame */
|
||||||
ldo 64(%sp),%sp
|
ldo 64(%sp),%sp
|
||||||
|
@ -101,11 +105,6 @@ ENTRY(__clone)
|
||||||
bv %r0(%rp)
|
bv %r0(%rp)
|
||||||
ldo -64(%sp), %sp
|
ldo -64(%sp), %sp
|
||||||
|
|
||||||
.LerrorSanity:
|
|
||||||
/* Sanity checks failed, return -1, and set errno to EINVAL. */
|
|
||||||
b .LerrorRest
|
|
||||||
ldi -EINVAL, %ret0
|
|
||||||
|
|
||||||
.LthreadStart:
|
.LthreadStart:
|
||||||
/* Load up the arguments. */
|
/* Load up the arguments. */
|
||||||
ldw -60(%sp), %arg0
|
ldw -60(%sp), %arg0
|
||||||
|
@ -121,7 +120,7 @@ ENTRY(__clone)
|
||||||
ldi __NR_exit, %r20
|
ldi __NR_exit, %r20
|
||||||
|
|
||||||
/* We should not return from exit.
|
/* We should not return from exit.
|
||||||
We do not restore r4, or the stack state. */
|
We do not restore the stack state. */
|
||||||
iitlbp %r0, (%sr0, %r0)
|
iitlbp %r0, (%sr0, %r0)
|
||||||
|
|
||||||
PSEUDO_END(__clone)
|
PSEUDO_END(__clone)
|
||||||
|
|
Loading…
Add table
Reference in a new issue