~ubuntu-branches/ubuntu/hardy/klibc/hardy-updates

« back to all changes in this revision

Viewing changes to klibc/arch/parisc/crt0.S

  • Committer: Bazaar Package Importer
  • Author(s): Jeff Bailey
  • Date: 2006-01-04 20:24:52 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060104202452-ec4v3n829rymukuv
Tags: 1.1.15-0ubuntu1
* New upstream version.

* Patch to fix compilation on parisc64 kernels.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
        .align 4
 
1
        .align 4
2
2
 
3
 
        .import $global$, data
4
 
        .import __libc_init, code
 
3
        .import $global$, data
 
4
        .import __libc_init, code
5
5
 
6
 
        .global _start
7
 
        .export _start, ENTRY
8
 
        .type _start,@function
 
6
        .global _start
 
7
        .export _start, ENTRY
 
8
        .type _start,@function
9
9
 
10
 
        .proc
11
 
        .callinfo
 
10
        .proc
 
11
        .callinfo
12
12
 
13
13
_start: 
14
14
/* extend the stack by 64-bytes */
15
 
        ldo     64(%sp), %sp
 
15
        ldo     64(%sp), %sp
16
16
        
17
17
/* %r25 = argc
18
18
 * %r24 = argv
19
 
 * envp = argv + (argc + 1)        
 
19
 * envp = argv + (argc + 1)        
20
20
 * elfdata = (argv - 4)
21
21
 */
22
 
        ldo     -4(%r24), %r26
 
22
        ldo     -4(%r24), %r26
23
23
 
24
24
/* load global data */
25
 
        ldil    L%$global$, %dp
26
 
        ldo     R%$global$(%dp), %dp
 
25
        ldil    L%$global$, %dp
 
26
        ldo     R%$global$(%dp), %dp
 
27
 
 
28
/* Indicate that we don't need no stinkin' atexit callback */
 
29
        ldi     0,%r25
27
30
 
28
31
/* branch to __libc_init */
29
 
        bl      __libc_init,%r2
30
 
        nop
 
32
        bl      __libc_init,%r2
 
33
        nop
31
34
/* break miserably if we ever return */
32
 
        iitlbp  %r0,(%r0) /* illegal instruction */
33
 
        nop
34
 
        .procend
 
35
        iitlbp  %r0,(%sr0,%r0) /* illegal instruction */
 
36
        nop
 
37
        .procend