~mirabilos/klibc/master

« back to all changes in this revision

Viewing changes to usr/klibc/arch/ia64/crt0.S

  • Committer: H. Peter Anvin
  • Date: 2006-05-01 00:56:02 UTC
  • Revision ID: git-v1:5dea5e01daaaff0685016f23b5cb46240f28e792
[klibc] Reorganize the standalone klibc tree to match the in-kernel tree

Right now, it's harder than it should to apply and test patches using
the standalone klibc tree.  Reorganize the standalone tree to match
the in-kernel tree.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include <asm/fpu.h>
 
3
 
 
4
        .align 32
 
5
        .global _start
 
6
 
 
7
        .proc _start
 
8
        .type _start,@function
 
9
_start:
 
10
        .prologue
 
11
        .save rp, r0
 
12
 
 
13
        alloc r2 = ar.pfs,0,0,2,0
 
14
        movl r3 = FPSR_DEFAULT
 
15
        ;;
 
16
        adds out0= 16,sp    /* argc pointer */
 
17
        movl gp = @gprel(0f)
 
18
0:      mov r9 = ip
 
19
        ;;
 
20
        sub gp = r9, gp     /* back-compute gp value */
 
21
 
 
22
        .body
 
23
        br.call.sptk.few rp = __libc_init
 
24
        ;;
 
25
        break 0             /* break miserably if we ever return */
 
26
 
 
27
        .endp _start