chiark / gitweb /
21a37655f2a4de27db93d638ecbd74097afc4658
[elogind.git] / klibc / klibc / arch / sh / crt0.S
1 #
2 # arch/sh/crt0.S
3 #
4 # Does arch-specific initialization and invokes __libc_init
5 # with the appropriate arguments.
6 #
7 # See __static_init.c or __shared_init.c for the expected
8 # arguments.
9 #
10
11         .text
12         .align 2
13         .type _start,#function
14         .globl _start
15         
16 _start:
17         mov     r15, r4
18         mov     #0, r5
19         mov.l   1f, r0
20
21         jsr     @r0
22          nop
23
24         .align 2
25 1:      .long   __libc_init
26
27         .size _start,.-_start