Skip to content

Commit

Permalink
alpha: Merge standard and nptl clone.S
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Henderson committed May 23, 2014
1 parent 132c7f5 commit 279b24e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
2014-05-23 Richard Henderson <rth@twiddle.net>

* sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
that was previously under [RESET_PID].
* sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.

* sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.

2014-05-23 Joseph Myers <joseph@codesourcery.com>
Expand Down
9 changes: 3 additions & 6 deletions sysdeps/unix/sysv/linux/alpha/clone.S
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ __clone:
subq a1, 32, a1
stq a0, 0(a1)
stq a3, 8(a1)
#ifdef RESET_PID
stq a2, 16(a1)
#endif

/* The syscall is of the form clone(flags, usp, ptid, ctid, tls).
Shift the flags, ptid, ctid, tls arguments into place; the
Expand All @@ -86,21 +84,20 @@ PSEUDO_END(__clone)
its own function so that we can terminate the stack trace with our
debug info. */

.align 4
.ent thread_start
cfi_startproc
thread_start:
mov 0, fp
cfi_def_cfa_register(fp)
cfi_undefined(ra)

#ifdef RESET_PID
/* Check and see if we need to reset the PID. */
ldq t0, 16(sp)
lda t1, CLONE_THREAD
and t0, t1, t2
beq t2, 2f
1:
#endif

/* Load up the arguments. */
ldq pv, 0(sp)
Expand All @@ -120,9 +117,10 @@ thread_start:
#endif

/* Die horribly. */
.align 4
halt

#ifdef RESET_PID
.align 4
2:
rduniq
lda t1, CLONE_VM
Expand All @@ -136,7 +134,6 @@ thread_start:
stl v0, PID_OFFSET(s0)
stl v0, TID_OFFSET(s0)
br 1b
#endif
cfi_endproc
.end thread_start

Expand Down
9 changes: 0 additions & 9 deletions sysdeps/unix/sysv/linux/alpha/nptl/clone.S

This file was deleted.

0 comments on commit 279b24e

Please sign in to comment.