mirror of git://sourceware.org/git/glibc.git
* sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be preprocessor comments, not assembler comments.
* sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be preprocessor comments, not assembler comments.
This commit is contained in:
parent
dce38123d0
commit
dfd5ddb713
|
|
@ -1,5 +1,8 @@
|
||||||
Fri Apr 14 18:49:03 1995 Brendan Kehoe (brendan@zen.org)
|
Fri Apr 14 18:49:03 1995 Brendan Kehoe (brendan@zen.org)
|
||||||
|
|
||||||
|
* sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
|
||||||
|
preprocessor comments, not assembler comments.
|
||||||
|
|
||||||
* sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
|
* sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
|
||||||
|
|
||||||
Fri Apr 14 15:53:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
Fri Apr 14 15:53:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
||||||
|
|
|
||||||
|
|
@ -20,40 +20,42 @@ Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
.comm errno, 4
|
.comm errno, 4
|
||||||
|
|
||||||
!.sdata
|
#if 0
|
||||||
!.globl STARTFRM
|
.sdata
|
||||||
!STARTFRM = 0
|
.globl STARTFRM
|
||||||
|
STARTFRM = 0
|
||||||
|
#endif
|
||||||
|
|
||||||
.text
|
.text
|
||||||
ENTRY(__start)
|
ENTRY(__start)
|
||||||
lda sp, -16(sp)
|
lda sp, -16(sp)
|
||||||
stq zero, 8(sp)
|
stq zero, 8(sp)
|
||||||
|
|
||||||
! This branch puts the address of the current insn in t0.
|
/* This branch puts the address of the current insn in t0. */
|
||||||
br t0, 10f
|
br t0, 10f
|
||||||
10:
|
10:
|
||||||
! We set the GP register by using the address of the ldgp
|
/* We set the GP register by using the address of the ldgp */
|
||||||
! (what we just put into t0).
|
/* (what we just put into t0). */
|
||||||
ldgp gp, 0(t0)
|
ldgp gp, 0(t0)
|
||||||
|
|
||||||
! get argc
|
/* get argc */
|
||||||
ldl a0, 16(sp)
|
ldl a0, 16(sp)
|
||||||
|
|
||||||
! get argv
|
/* get argv */
|
||||||
lda a1, 24(sp)
|
lda a1, 24(sp)
|
||||||
|
|
||||||
! move ahead to envp
|
/* move ahead to envp */
|
||||||
s8addq a0, a1, a2
|
s8addq a0, a1, a2
|
||||||
addq a2, 0x8, a2
|
addq a2, 0x8, a2
|
||||||
|
|
||||||
! Store in environ.
|
/* Store in environ. */
|
||||||
stq a2, environ
|
stq a2, environ
|
||||||
|
|
||||||
! Clear out errno.
|
/* Clear out errno. */
|
||||||
! ldgp gp, 0(t12)
|
/* ldgp gp, 0(t12) */
|
||||||
stl zero, errno
|
stl zero, errno
|
||||||
|
|
||||||
! Call main.
|
/* Call main. */
|
||||||
jsr ra, main
|
jsr ra, main
|
||||||
ldgp gp, 0(ra)
|
ldgp gp, 0(ra)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue